Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have the Microsoft C-Fonts installed, and they're wonderful. However, Calibri appears as a bitmap font in a lot of the sizes that it appears. How do I tell fontconfig to forbid Calibri (and Cambria,etc.) from being rendered from the embedded bitmaps? I already have 70-no-bitmaps.conf in my /etc/fonts/conf.d/ directory.

The fonts in question can be extracted from the PowerPoint Viewer.

share|improve this question
AFAIK those fonts aren't freely distributable? (So I can't test them.) But are you sure they use bitmaps, and don't just disable antialiassing? –  JanC Jan 11 '11 at 19:33
@JanC The fonts do indeed use prerendered bitmaps. –  Paul Fisher Jan 29 '11 at 6:57
add comment

1 Answer

up vote 8 down vote accepted

/etc/fonts/conf.d/70-no-bitmaps.conf only rejects bitmap fonts, they don't disable embedded bitmaps, which is the case here. I don't know why they didn't put the setting to disable embedded bitmaps in the same conf file. Anyways, put the following in your ~/.config/fontconfig/conf.d/20-no-embedded.conf (or, for older versions of Ubuntu, in ~/.fonts.conf.d/20-no-embedded.conf):

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

This will disable embedded bitmap for all fonts. If you want to disable only for select fonts, add <test> element:

<test name="family" compare="contains">

before <edit ....

share|improve this answer
Should this be put in /etc/fonts/conf.d, or better in /etc/fonts/conf.avail and symlinked to conf.d, like all the other config files? Is this reserved for the config files provided by the ubuntu distribution? Does it matter? –  knb Apr 21 '12 at 15:50
@knb by default ubuntu/debian settings, fontconfig will load anything in ~/.fonts.conf.d/ as well. So I suggest you put it there to avoid mucking with system configs. Unless you want to make it available to all users, then you can put it in /etc/fonts/conf.d, or put it in avail and symlink it to conf.d to use it when you need it (you can delete the symlink when you feel like turning it on, vice versa) –  syockit Apr 22 '12 at 16:26
With current versions of fontconfig, the file name must be ~/.fonts.conf.d/20-no-embedded.conf it won't be loaded if it isn't prefixed with a number. Run for example FC_DEBUG=1024 gedit to see if your configuration is loaded at all if it doesn't seem to have any effect. –  pascal Oct 26 '12 at 12:58
@pascal +1 for FC_DEBUG. And no, number before name was not necessary on 10.04 LTS, just having it named .fonts.config was enough. What version of fontconfig you refer to? –  LIttle Ancient Forest Kami Feb 5 '13 at 15:09
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.