Wednesday, 6 July 2016

How to get Calibri font look good at LibreOffice


Enable anti-aliasing for the MS Calibri or Cambria fonts.

When we use the Calibri or Cambria fonts in LibreOffice writer on Linux mint or Ubuntu system, these fonts displays without anti-aliasing, which looks very bad and it happens with small font sizes only. Also the same problem occurs when we open a document which is written in Calibri/Cambria font in MS office at windows machine.

Below are the examples:

Calibri font without anti-aliasing:



Calibri font with anti-aliasing:






Now how to make Calibri/Cambria font look good or with anti-aliasing:

Most common problem with MS C-fonts (Cambria, Calibri...etc.) is that they use embedded bitmaps. to change this you only need to create a file with name as .fonts.conf in your home directory with below text. If it is already present then add the following text at the end of the file:

<match target="font">
    <edit mode="assign" name="embeddedbitmap"><bool>false</bool></edit>
</match>
Once you add the above to the .fonts.conf file LibreOffice will display the Calibri/Cambria fonts with anti-aliasing.