• Blog
  • Stuff
  • About

Windows and Office Fonts in Linux

Feb 23 2013

I just came across a PowerPoint template which ran fine in LibreOffice, but required a font called "Calibri". Most people know how to install Arial, Verdana etc. which are often in packages called "corefonts" or "msttcorefonts". Calibri however is distributed with Windows Vista, 7, 8 and several Office products. Here's how to get these fonts running on Linux, i.e. my Ubuntu box.

Installation

In short, you need cabextract in order to extract the fonts from the PowerPoint Viewer .exe that Microsoft distributes for free. Then, you can copy them to your local font directory (should be ~/.fonts) or install them globally. There is a handy script which does this for you at plasmasturm.org. You can download and execute this file using

wget http://plasmasturm.org/code/vistafonts-installer/vistafonts-installer
bash vistafonts-installer

Unhinted fonts in Chromium

I had the problem that my browser would display pages that used one of the Vista fonts as pixelated, due to disabled hinting. I found a fix for this problem: You have to change your local font configuration to ignore the embedded bitmaps inside the Microsoft fonts. Depending on your system, you might have the local font configuration at ~/.fonts.conf or use a directory ~/.fonts.conf.d/, in which you can place a new file with the contents

<?xml version="1.0"?><!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
 <dir>~/.fonts</dir>
 <match target="font">
  <test name="family" compare="contains">
   <string>Calibri</string>
   <string>Cambria</string>
   <string>Candara</string>
   <string>Consolas</string>
   <string>Corbel</string>
   <string>Constantia</string>
  </test>
  <edit name="embeddedbitmap" mode="assign">
   <bool>false</bool>
  </edit>
 </match>
</fontconfig>
  • Tags
    • cooking (5)
    • d3 (1)
    • engineering (1)
    • experiments (2)
    • games (3)
    • German (3)
    • Hong Kong (11)
    • Japan (12)
    • linux (1)
    • London (1)
    • Malta (2)
    • music (5)
    • programming (8)
    • Soylent (1)
    • spam (11)
    • Switzerland (7)
    • water (7)
    • web (18)
    • windows (1)
    • wtf (6)
  • Archive
    • January 2023 (1)
    • September 2022 (1)
    • January 2022 (1)
    • September 2021 (1)
    • July 2021 (3)
    • June 2021 (2)
    • May 2021 (2)
    • April 2021 (4)
    • October 2021 (1)
    • March 2020 (1)
    • February 2020 (1)
    • December 2020 (1)
    • May 2018 (1)
    • April 2018 (1)
    • February 2018 (1)
    • December 2017 (11)
    • March 2016 (1)
    • October 2016 (1)
    • August 2015 (2)
    • July 2015 (2)
    • March 2015 (2)
    • October 2015 (1)
    • August 2014 (9)
    • June 2014 (1)
    • September 2013 (1)
    • August 2013 (1)
    • July 2013 (3)
    • May 2013 (6)
    • April 2013 (5)
    • March 2013 (2)
    • February 2013 (2)