Change the rule for artificial emboldening in fonts.conf.in. This enables

the support for artificial emboldening included in cairo.
reviewed by: plam
This commit is contained in:
Patrick Lam 2005-11-02 15:57:36 +00:00
parent d7b3ac6367
commit efa9f2bd07
2 changed files with 22 additions and 4 deletions

View File

@ -1,3 +1,11 @@
2005-11-02 Zhe Su <zsu@novell.com>
reviewed by: plam
* fonts.conf.in:
Change the rule for artificial emboldening in fonts.conf.in. This
enables the support for artificial emboldening included in cairo.
2005-11-02 Patrick Lam <plam@mit.edu> 2005-11-02 Patrick Lam <plam@mit.edu>
* src/fcpat.c (FcPatternDestroy, FcPatternTransferFullName): * src/fcpat.c (FcPatternDestroy, FcPatternTransferFullName):

View File

@ -354,16 +354,26 @@
<match target="font"> <match target="font">
<!-- check to see if the font is just regular --> <!-- check to see if the font is just regular -->
<test name="weight" compare="less_eq"> <test name="weight" compare="less_eq">
<int>100</int> <const>medium</const>
</test> </test>
<!-- check to see if the pattern requests bold --> <!-- check to see if the pattern requests bold -->
<test target="pattern" name="weight" compare="more_eq"> <test target="pattern" name="weight" compare="more">
<int>200</int> <const>medium</const>
</test> </test>
<!-- set the embolden flag --> <!--
set the embolden flag
needed for applications using cairo, e.g. gucharmap, gedit, ...
-->
<edit name="embolden" mode="assign"> <edit name="embolden" mode="assign">
<bool>true</bool> <bool>true</bool>
</edit> </edit>
<!--
set weight to bold
needed for applications using Xft directly, e.g. Firefox, ...
-->
<edit name="weight" mode="assign">
<const>bold</const>
</edit>
</match> </match>