Tuesday, August 4, 2020

Fixing fontconfig for proper rendering of Microsoft fonts

This post is more of a reminder / howto to *me* and is lifted from stefan.angrick's blog.

This, in particular, applies to Cambria and Calibri.

If it doesn't already exist, create a file fonts.conf in the directory ~/.config/fontconfig/  That file will need to contain the following content:

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

1 comment:

baitisj said...

If you find that fonts look jagged / no smoothing, try the following:
ln -s /usr/share/fontconfig/conf.avail/70-no-bitmaps.conf /etc/fonts/conf.d/