]> git.wh0rd.org - fontconfig.git/commitdiff
Configuration changes to request synthetic emboldening of fonts. The actual
authorKeith Packard <keithp@keithp.com>
Fri, 10 Dec 2004 16:48:08 +0000 (16:48 +0000)
committerKeith Packard <keithp@keithp.com>
Fri, 10 Dec 2004 16:48:08 +0000 (16:48 +0000)
    emboldening code will live in Xft.
reviewed by: Keith Packard <keithp@keithp.com>

ChangeLog
fontconfig/fontconfig.h
fonts.conf.in

index ee0bfbe4f5eba1ba4ddab3315adf66c5692f542e..e53e20c65e5a0c2d65ef5ab3f15e912493ebf946 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2004-12-10  Jakub Pavelek <jakub.pavelek@nokia.com>
+
+       reviewed by: Keith Packard  <keithp@keithp.com>
+
+       * fontconfig/fontconfig.h:
+       * fonts.conf.in:
+
+       Configuration changes to request synthetic emboldening of
+       fonts.  The actual emboldening code will live in Xft.
+
 2004-12-09  John Thacker <thacker@math.cornell.edu>
 
        reviewed by: Keith Packard  <keithp@keithp.com>
index 81b3da6c1cae440f879508f2f413b1d6818eaca2..ab312da8110b190d0ed76d1c73a8daf0c7410217 100644 (file)
@@ -95,6 +95,7 @@ typedef int           FcBool;
 #define FC_FULLNAMELANG            "fullnamelang"      /* String RFC 3066 langs */
 #define FC_CAPABILITY       "capability"       /* String */
 #define FC_FONTFORMAT      "fontformat"        /* String */
+#define FC_EMBOLDEN        "embolden"          /* Bool - true if emboldening needed*/
 
 #define FC_DIR_CACHE_FILE          "fonts.cache-"FC_CACHE_VERSION
 #define FC_USER_CACHE_FILE         ".fonts.cache-"FC_CACHE_VERSION
index d1becbabd499f3e0b40dc3d32f07b2ea0285ac0d..446c0a09b1a4b88a8d8441dbe257dbbef3dc6764 100644 (file)
                </edit>
        </match>
 
+<!--
+ Synthetic emboldening for fonts that do not have bold face available
+ -->
+
+       <match target="font">
+               <!-- check to see if the font is just regular -->
+               <test name="weight" compare="less_eq">
+                       <int>100</int>
+               </test>
+               <!-- check to see if the pattern requests bold -->
+               <test target="pattern" name="weight" compare="more_eq">
+                       <int>200</int>
+               </test>
+               <!-- set the embolden flag -->
+               <edit name="embolden" mode="assign">
+                       <bool>true</bool>
+               </edit>
+       </match>
+
+
        <config>
 <!--
   These are the default Unicode chars that are expected to be blank