[Fontconfig] embedded bitmaps patch (Re: Trouble forcing rescanning of font dirs)

Mike FABIAN mfabian at suse.de
Thu Feb 5 03:40:54 PST 2009

Behdad Esfahbod <behdad at behdad.org> さんは書きました:

> Mike FABIAN wrote:
>> http://download.opensuse.org/repositories/M17N/SUSE_Factory/src/fontconfig-2.6.0-10.2.src.rpm
> Lots of stuff here, and not enough documentation.  I'm going through the
> patches right now (conf files are the other useful set).  Many of the patches
> look like are not actually used by the RPM anymore and are from 2.3.94 days.
> Certainly obsolete.

Yes, I will delete them soon. I kept some old patches for reference for
a while but I will really delete the very old ones now.


I try to answer each question in a separate mail.

First about the embedded bitmaps:

> 28937-turn-off-embedded-bitmaps-by-default.patch:  Any reason why you're not
> doing this in config files instead?

Yes, this patch is obsolete and it is not applied anymore. We are doing
this embedded bitmap enabling/disabling in the config files for a long
time already, see suse-hinting.conf in the source.rpm. Therefore this
patch isn't applied for a long time. For the original reason of the
patch see


Zhe Su wanted to have embedded bitmaps off by default. But he wanted
them turned on for Chinese. He is Chinese.  There are very few non CJK
fonts with embedded bitmaps, the only one I currently know seems to be
Microsoft’s "Courier New". But the bitmaps in "Courier New" seem to be
few and not really important. Maybe Zhe Su wanted to have them
turned of by default because there are some non-CJK fonts
where they cause problems? I don’t know and the original bug
doesn’t say either. 

Currently we do this:

        <match target="font">
                <edit name="embeddedbitmap" mode="assign">
        <match target="font">
                <test name="lang" compare="contains">
                <edit name="embeddedbitmap" mode="assign">

which achieves the same what Zhe Su wanted but in the config files.

And, because of user request we disable embedded bitmaps for the IPA
fonts because it doesn’t really make sense to get a bitmap at 12 pixels,
an anti-aliased outline at 13 and a bitmap again at 14:

    The IPA fonts have bitmaps only in 12, 14, and 16 pixels.
    That is rather useless, it is not nice to see a bitmaps at 12
    pixels, antialiased glyphs at 13 pixels and bitmaps at 14
    pixels again.
       <match target="font">
               <test name="family">
               <edit name="autohint">
               <edit name="embeddedbitmap">

Mike FABIAN   <mfabian at suse.de>   http://www.suse.de/~mfabian
I � Unicode

More information about the Fontconfig mailing list