]> git.wh0rd.org - fontconfig.git/commit
Add FcMatchScan to resolve Delicious font matching issues (bug #6769)
authorKeith Packard <keithp@neko.keithp.com>
Sun, 3 Sep 2006 00:52:12 +0000 (17:52 -0700)
committerKeith Packard <keithp@neko.keithp.com>
Sun, 3 Sep 2006 00:52:12 +0000 (17:52 -0700)
commitc2c6976d1a88cc35143ffcc34f3c38d0a28d34f4
tree90402a0722e2eebae7e94bab96c23d2524294748
parent3b8a03c09d3a45f578680b5fe80255af9761b3fa
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.
13 files changed:
conf.d/Makefile.am
doc/fontconfig-user.sgml
fontconfig/fontconfig.h
fonts.dtd
src/fccfg.c
src/fcdbg.c
src/fcdefault.c
src/fcdir.c
src/fcfreetype.c
src/fcint.h
src/fcmatch.c
src/fcname.c
src/fcxml.c