emboldening code will live in Xft.
reviewed by: Keith Packard <keithp@keithp.com>
+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>
#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
</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