Fonts – Fixing TTF Font Rendering Issues in LibreOffice

fontslibreofficemicrosoft

Microsoft TTF-fonts such as Calibri and Cambria aren't rendered correctly at certain page zoom levels:

Comparison between the system font and Cambria at different zoom levels

(I installed the Microsoft fonts manually by placing them in the ~/.fonts directory and updating the font cache).

Is there any way to improve Microsoft font rendering under LibreOffice?

Best Answer

Fonts like Calibri and Cambria resort to using embedded bitmaps when adjusted to small sizes.

To disable this font behaviour, put the following into $HOME/.fonts.conf:

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

Create the file if it doesn't exist.

Restart to take effect.

Sources
http://ubuntuforums.org/showthread.php?t=724818 (registration required)
http://manpages.ubuntu.com/manpages/precise/man5/fonts-conf.5.html

NOTE:
$HOME/.fonts.conf is deprecated in Ubuntu 12.10 Instead, paste the above XML code (as root) in /etc/fonts/conf.d/50-user.conf