[Fontconfig] Bold Font replacement
Ken Joseph
o123 at netian.com
Thu Mar 13 20:10:46 EST 2003
Around 17:00, 3/10/2003, Alger Hoi wrote:
>I am a Chinese user. As the Dynafonts I used in Chinese does not have bold
>style, so that fontconfig cannot return a bold font when the application
>request a bold style of the same font (I already added them in alias serif).
You only need to add DFPHeiLight-B5 to the Serif aliases.
>My fc-list of the fonts look like.
>
>DFPHeiLight\-B5:style=Regular
>DFPHeiBold\-B5:style=Regular
>
>Although they are different ttf, actually the second one is the bold version
>of the first one. Is that any way so that, for example, when a application
>requests a "serif" font in lang zh, return the first one, when it request
>a bold "serif" in lang zh, return the second one?
I don't think you need to specify zh lang in font matching.
Try the following:
<match target="pattern">
<test name="family">
<string>Serif</string>
</test>
<test name="weight" compare="more">
<const>medium</const>
</test>
<edit name="family" mode="prepend">
<string>DFPHeiBold-B5</string>
</edit>
</match>
<match target="pattern">
<test name="family">
<string>DFPHeiLight-B5</string>
</test>
<test name="weight" compare="more">
<const>medium</const>
</test>
<edit name="family" mode="assign">
<string>DFPHeiBold-B5</string>
</edit>
</match>
I use similar settings as above and mine works fine.
Good luck.
________________________________________
네띠앙 프리미엄 메일 오픈! (SMTP, 스팸메일 필터링 제공) http://www.netian.com/premium_mail/main.html
More information about the Fontconfig
mailing list