[Fontconfig] Re: How to disable the "global advance" for CJK
fonts?
Xie Qian
xieqian02 at iscas.cn
Thu Jun 30 17:29:09 EST 2005
Hi there,
Just trying to clear my confusion. In original mail, the modification of
fonts.conf shows an edit clause on "globaladvance" with binding="strong". I
don't know what effect will the strong-binding bring. I dug source codes of
fontconfig some time ago, AFAIK, strong-binding only make family name
priorer than lang. Is things changed a lot?
Thanks for any hint.
Xie Qian
Open System and Chinese Information Processing Center,
Institute of Software, Chinese Academy of Sciences,
P.O. Box 8718, Beijing 100080, CHINA
----- Original Message -----
From: "Mike FABIAN" <mfabian at suse.de>
To: "Ambrose Li" <acli at ada.dhs.org>
Cc: "Keith Packard" <keithp at keithp.com>; <fontconfig at fontconfig.org>
Sent: Wednesday, June 29, 2005 9:58 PM
Subject: [Fontconfig] Re: How to disable the "global advance" for CJK fonts?
> Ambrose Li <acli at ada.dhs.org> さんは書きました:
>
> > Some time ago, iirc, someone else proposed on this list that global
> > advance be turned off by default for all CJK fonts; from what I
> > observe that would be an entirely reasonable thing, and I'd like to
> > know any technical reason why that should not be the case.
>
> Currently I use the following workaround, which seems to work OK:
>
> <!--
> The dual-width Asian fonts (spacing=dual) are not rendered correctly,
> apparently FreeType forces all widths to match. Trying to disable the
> width forcing code by setting globaladvance=false alone doesn't help.
> As a brute force workaround, also set spacing=proportional, i.e. handle
> them as proportional fonts:
> -->
>
> <match target="font">
> <test name="lang" compare="contains">
> <string>ja</string>
> <string>zh</string>
> <string>ko</string>
> </test>
> <test name="spacing" compare="eq">
> <const>dual</const>
> </test>
> <edit name="spacing">
> <const>proportional</const>
> </edit>
> <edit name="globaladvance" binding="strong">
> <bool>false</bool>
> </edit>
> </match>
>
> --
> Mike FABIAN <mfabian at suse.de> http://www.suse.de/~mfabian
> 睡眠不足はいい仕事の敵だ。
>
> _______________________________________________
> fontconfig mailing list
> fontconfig at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/fontconfig
>
More information about the Fontconfig
mailing list