Configuration changes to request synthetic emboldening of fonts. The actual

emboldening code will live in Xft.
reviewed by: Keith Packard <keithp@keithp.com>
This commit is contained in:
Keith Packard 2004-12-10 16:48:08 +00:00
parent 9af19286b0
commit 46a10637cd
3 changed files with 31 additions and 0 deletions

View File

@ -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>

View 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

View File

@ -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