summaryrefslogtreecommitdiff
path: root/src/fcdefault.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@neko.keithp.com>2006-09-02 17:52:12 -0700
committerKeith Packard <keithp@neko.keithp.com>2006-09-02 17:52:12 -0700
commitc2c6976d1a88cc35143ffcc34f3c38d0a28d34f4 (patch)
tree90402a0722e2eebae7e94bab96c23d2524294748 /src/fcdefault.c
parent3b8a03c09d3a45f578680b5fe80255af9761b3fa (diff)
downloadfontconfig-c2c6976d1a88cc35143ffcc34f3c38d0a28d34f4.tar.gz
Add FcMatchScan to resolve Delicious font matching issues (bug #6769)
The Delicious family includes one named Delicious Heavy, a bold variant which is unfortunately marked as having normal weight. Because the family name is 'Delicious', fontconfig accidentally selects this font instead of the normal weight variant. The fix here rewrites the scanned data by running the scanned pattern through a new substitution sequence tagged with <match target=scan>; a sample for the Delicious family is included to demonstrate how it works (and fix Delicious at the same time). Also added was a new match predicate -- the 'decorative' predicate which is automatically detected in fonts by searching style names for key decorative phrases like SmallCaps, Shadow, Embosed and Antiqua. Suggestions for additional decorative key words are welcome. This should have little effect on font matching except when two fonts share the same characteristics except for this value.
Diffstat (limited to 'src/fcdefault.c')
-rw-r--r--src/fcdefault.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fcdefault.c b/src/fcdefault.c
index b582310..b69de30 100644
--- a/src/fcdefault.c
+++ b/src/fcdefault.c
@@ -34,6 +34,7 @@ static const struct {
{ FC_AUTOHINT_OBJECT, FcFalse }, /* FC_LOAD_FORCE_AUTOHINT */
{ FC_GLOBAL_ADVANCE_OBJECT, FcTrue }, /* !FC_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH */
{ FC_EMBEDDED_BITMAP_OBJECT, FcTrue }, /* !FC_LOAD_NO_BITMAP */
+ { FC_DECORATIVE_OBJECT, FcFalse },
};
#define NUM_FC_BOOL_DEFAULTS (int) (sizeof FcBoolDefaults / sizeof FcBoolDefaults[0])