diff options
author | Owen Taylor <otaylor@redhat.com> | 2003-09-23 20:12:20 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@redhat.com> | 2003-09-23 20:12:20 +0000 |
commit | f077d662c001468eb2aa1261549accd9ff3de401 (patch) | |
tree | 81b12ea6296b32ecedf5cc522d4ac0b37dc6083e /src/fcdefault.c | |
parent | 44f59f71688d557b75a94e2a8786ec5ae80308ae (diff) | |
download | fontconfig-f077d662c001468eb2aa1261549accd9ff3de401.tar.gz |
Add a FC_HINT_STYLE key for patterns, with possible values
HINT_NONE/HINT_SLIGHT/HINT_MEDIUM/HINT_FULL. (Bug #117)
Diffstat (limited to 'src/fcdefault.c')
-rw-r--r-- | src/fcdefault.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/fcdefault.c b/src/fcdefault.c index b070ea8..39cf27d 100644 --- a/src/fcdefault.c +++ b/src/fcdefault.c @@ -144,4 +144,9 @@ FcDefaultSubstitute (FcPattern *pattern) { FcPatternAddInteger (pattern, FC_FONTVERSION, 0x7fffffff); } + + if (FcPatternGet (pattern, FC_HINT_STYLE, 0, &v) == FcResultNoMatch) + { + FcPatternAddInteger (pattern, FC_HINT_STYLE, FC_HINT_FULL); + } } |