Microsoft fonts

This article explains how to install TrueType Microsoft fonts and emulate Windows' font rendering.

Tip: See Metric-compatible fonts for alternatives.

Installation

Automatic Installation

Note: These automatically fetches the Windows Enterprise 90-day evaluation edition and extracts the required fonts from it.

The easiest way to install the fonts is by installing one of the following:

Using fonts from a Windows partition

If there is a Windows partition mounted, its fonts can be used by linking to them. It may be necessary to apply a workaround for system compressed files in order to read the font files.

Note: Users of google-chromeAUR should opt to copy as symlinked fonts cause Chrome to crash.

For example, if the Windows partition is mounted at :

# ln -s /windows/Windows/Fonts /usr/share/fonts/WindowsFonts

Then regenerate the fontconfig cache:

# fc-cache --force

Alternatively, copy the Windows fonts to :

# mkdir /usr/share/fonts/WindowsFonts
# cp /windows/Windows/Fonts/* /usr/share/fonts/WindowsFonts/
# chmod 644 /usr/share/fonts/WindowsFonts/*

Then regenerate the fontconfig cache:

# fc-cache --force

Extracting fonts from a Windows ISO

The fonts can also be found in a Windows ISO file. The format of the image file containing the fonts in the ISO is either WIM (Windows Imaging Format) if the ISO is downloaded online or ESD (Windows Electronic Software Download) if it is built with Windows' Media Creation Tool. Extract the sources/install.esd or the file from the .iso and look for a Windows/Fonts directory within this file. It can be extracted using 7z (in p7zip) or wimextract (in ). See an example below using 7z:

$ 7z e Win10_1709_English_x64.iso sources/install.wim
$ 7z e install.wim 1/Windows/{Fonts/"*".{ttf,ttc},System32/Licenses/neutral/"*"/"*"/license.rtf} -ofonts/
$ 7z e install.wim Windows/{Fonts/"*".{ttf,ttc},System32/Licenses/neutral/"*"/"*"/license.rtf} -ofonts/ # Windows 7

The fonts and the license will be located in the directory.

Current packages

  • — Office 2007 fonts
  • — Windows 7 fonts
  • — Windows 8.1 fonts
  • — Windows 10 fonts
  • — Windows 11 fonts

Legacy packages

Note: The fonts provided by these packages are out-of-date and are missing modern hinting instructions and the full character sets. It is recommended to use the above packages.
includes:

You can also obtain which, as you might expect, contains Tahoma.

ttf-vista-fontsAUR includes:

Fontconfig rules useful for MS Fonts

Rule mapping for similar fonts

Often websites specify the fonts using generic names (helvetica, courier, times or times new roman) and a rule in fontconfig maps these names to free fonts (Liberation, Google CrOS, GUST TeX Gyre...). The substitutions are defined in .

To make full use of the Ms Windows fonts it is necessary to create a rule mapping those generic names to the Ms Windows specific fonts contained in the various packages above:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
 
        
       <alias binding="same">
         <family>Helvetica</family>
         <accept>
         <family>Arial</family>
         </accept>
       </alias>
       <alias binding="same">
         <family>Times</family>
         <accept>
         <family>Times New Roman</family>
         </accept>
       </alias>
       <alias binding="same">
         <family>Courier</family>
         <accept>
         <family>Courier New</family>
         </accept>
       </alias>
</fontconfig>

It is also useful to associate serif,sans-serif,monospace fonts in your favourite browser to MS fonts.

Disable embedded bitmap fonts

Some Microsoft TTF fonts such as Calibri and Cambria contain embedded bitmap fonts for specific font sizes, which are not anti-aliased. If embedded bitmaps are enabled, the fonts are not anti-aliased at those specific sizes. Embedded bitmap fonts can be disabled in the Font configuration:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
  <match target="font">
    <edit name="embeddedbitmap" mode="assign">
      <bool>false</bool>
    </edit>
  </match>
</fontconfig>

Known issues

Symbols not displaying properly with Poppler-based PDF readers

The TrueType Microsoft font "symbol.ttf" is buggy with Poppler, math symbols may not display correctly in Poppler-based PDF readers.

gollark: Wait, and wasn't that when the only available ones were CB, too?!
gollark: Is there one due to arrive?
gollark: A hatchling wall?!
gollark: I feel kind of annoyed, looking at the many trades which 99% of players can't fulfil.
gollark: So many valuable trades, so many requests for 2G SAltkin.
This article is issued from Archlinux. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.