18/10/2014

[Ubuntu] Calibri and Microsoft fonts not displayed correctly

When using or displaying fonts from the Microsoft family on Ubuntu, they sometimes appear to be displayed incorrectly, rendering them unreadable. The issue is that the font rendering engine Freetype, uses the embedded bitmaps found inside those fonts which are only there so that they look pretty on Windows.

The solution is to disable that behaviour by creating a file .config/fontconfig/fonts.conf with this content

 <match target="font" >  
   <edit name="embeddedbitmap" mode="assign">  
     <bool>false</bool>  
   </edit>  
 </match>  

By logging out and in again, you should finally see them correctly displayed

No comments:

Post a Comment

With great power comes great responsibility.

Da grandi poteri derivano grandi responsabilità.