[Fontconfig] How to disable the "global advance" for CJK fonts?

Keith Packard keithp at keithp.com
Sat Mar 19 08:57:56 EST 2005


Around 2 o'clock on Mar 19, Ambrose wrote:

> Ambrose> Is there an "official" way
> Ambrose> to disable the "global advance" for CJK fonts? 

In fontconfig 2.3, there are several CJK fonts configured to disable 
global advance already.

Check out the fonts.conf where you'll find:

<!--
  Some Asian fonts misadvertise themselves as monospaced when
  in fact they are dual-spaced (half and full).  This makes
  FreeType very confused as it forces all widths to match.
  Undo this magic by disabling the width forcing code -->
        <match target="font">
                <test name="family"><string>GulimChe</string></test>
                <edit name="globaladvance"><bool>false</bool></edit>
        </match>

        <match target="font">
                <test name="family"><string>DotumChe</string></test>
                <edit name="globaladvance"><bool>false</bool></edit>
        </match>

        <match target="font">
                <test name="family"><string>BatangChe</string></test>
                <edit name="globaladvance"><bool>false</bool></edit>
        </match>

        <match target="font">
                <test name="family"><string>GungsuhChe</string></test>
                <edit name="globaladvance"><bool>false</bool></edit>
        </match>

Feel free to send along more family names that need this treatment and 
I'll stick 'em in the next release.

-keith


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20050318/69d03f6e/attachment.pgp


More information about the Fontconfig mailing list