]> git.wh0rd.org - fontconfig.git/commitdiff
Change the rule for artificial emboldening in fonts.conf.in. This enables
authorPatrick Lam <plam@MIT.EDU>
Wed, 2 Nov 2005 15:57:36 +0000 (15:57 +0000)
committerPatrick Lam <plam@MIT.EDU>
Wed, 2 Nov 2005 15:57:36 +0000 (15:57 +0000)
    the support for artificial emboldening included in cairo.
reviewed by: plam

ChangeLog
fonts.conf.in

index 7c45d3dd603f6ad6a11130178c91817d47574590..6223c13015d0fd7220a4b8126a3f9a5f1c99852e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
        * src/fcpat.c (FcPatternDestroy, FcPatternTransferFullName):
 
index 4f7a3084c9128268bd88baccdaa69c8e451c32d2..c9014f8bb53cb2cd848478340d0b832c6c3bc952 100644 (file)
        <match target="font">
                <!-- check to see if the font is just regular -->
                <test name="weight" compare="less_eq">
-                       <int>100</int>
+                       <const>medium</const>
                </test>
                <!-- check to see if the pattern requests bold -->
-               <test target="pattern" name="weight" compare="more_eq">
-                       <int>200</int>
+               <test target="pattern" name="weight" compare="more">
+                       <const>medium</const>
                </test>
-               <!-- set the embolden flag -->
+               <!--
+                 set the embolden flag
+                 needed for applications using cairo, e.g. gucharmap, gedit, ...
+               -->
                <edit name="embolden" mode="assign">
                        <bool>true</bool>
                </edit>
+               <!--
+                set weight to bold
+                needed for applications using Xft directly, e.g. Firefox, ...
+               -->
+               <edit name="weight" mode="assign">
+                       <const>bold</const>
+               </edit>
        </match>