# Calibri font not rendering correctly [closed]

I am experiencing a bad rendering of the Calibri font in some scales while using LibreOffice Writer 3.6.2.2 in Ubuntu 12.10 amd64. At first I thought that the problem was in the system font rendering, but then I saw that in Evince the font was rendered correctly at all scales. Please refer to the image comparison below.

edit retag reopen merge delete

### Closed for the following reason the question is answered, right answer was accepted by Alex Kemp close date 2016-03-04 18:30:24.451097

Sort by » oldest newest most voted

It is actually a system thing. The Calibri family and other Microsoft fonts look jagged because Freetype, the font rendering engine used by Ubuntu, takes into account by default the embedded bitmaps these fonts have inside. These bitmaps are created so the fonts can look decent with the horrid Windows’ font rendering. Here’s the fix (source):

To disable this and get correct smoothing at all sizes do this: Create a file called .fonts.conf in the ~/.config/fontconfig directory, paste this code in it:

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


Save the file, and log out and back in.

more

1

Thanks a lot! I've finally solved this problem with only a little difference: From Ubuntu 12.10 the user font configuration file should be ~/.config/fontconfig/fonts.conf although it should be ~/.fonts.conf in earlier versions.

( 2013-08-15 20:40:07 +0200 )edit
1

~/.config/fontconfig/fonts.conf works fine on Ubuntu 13.10. I didn't have to log out but only close and re-open libreoffice.

( 2014-01-17 09:08:17 +0200 )edit

Was not able to upvote, and wanted to say thanks. Fitoschido thank you a bunch. The answer you provided works well. The importance of this fix got more important IMO because newer versions of Outlook, including Outlook.com (Hotmail) started using Calibri, or some other bitmap fonts per default. I am not sure what was default before, but in the last time, last few month, I am getting more and more emails written in a font which render improperly and ugly on Ubuntu (All distributin except ones which could apply this or similar workaround. Font may still render improperly, but not so ugly at least.). Depending on email client one uses fonts render between unreadable (Google Chrome and Gmail), readable but ugly (Firefox and Gmail) and some apps show these messages ok, font nice and readable, but these clients replace the font completely I think (Geary, Thunderbird.).

more

This fix isn't working for me on LibreOffice Version: 4.2.1.1 (Ubuntu 13.10 64-bit). Abiword has the same problem, although both Kingsoft Writer and Calligra Words diplay the font fine.

A major problem for me as all my organisation's documents have to be in Calibri 11pt as standard.

I have 7 hours of work time to Get Work Done today, and I've wasted 3 1/2 of that trying to solve this issue. I've now had to boot back into Windows just so I can Get My Work Done.

Another LibreOffice Fail unfortunately. Devs - please sort out this long-standing issue so that I can use LibreOffice as a realistic alternative to Word. That is what you want us to do, right?

more