summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2004-12-10 16:48:08 +0000
committerKeith Packard <keithp@keithp.com>2004-12-10 16:48:08 +0000
commit46a10637cde656967b60f1e028b24763022358bb (patch)
tree30ae2b1b8a3c4b4c24dc88a9941798c272ab9706
parent9af19286b0dcdf7636749b9efb64a50650554f2d (diff)
Configuration changes to request synthetic emboldening of fonts. The actual
emboldening code will live in Xft. reviewed by: Keith Packard <keithp@keithp.com>
-rw-r--r--ChangeLog10
-rw-r--r--fontconfig/fontconfig.h1
-rw-r--r--fonts.conf.in20
3 files changed, 31 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index ee0bfbe..e53e20c 100644
--- 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>
diff --git a/fontconfig/fontconfig.h b/fontconfig/fontconfig.h
index 81b3da6..ab312da 100644
--- a/fontconfig/fontconfig.h
+++ b/fontconfig/fontconfig.h
@@ -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
diff --git a/fonts.conf.in b/fonts.conf.in
index d1becba..446c0a0 100644
--- a/fonts.conf.in
+++ b/fonts.conf.in
@@ -311,6 +311,26 @@
</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