Treat zh-hk fonts differently from zh-tw fonts. This patch may cause

fontconfig to treat A-X fonts differently from A-Y fonts; please mail
    the fontconfig list if this causes any problems.
reviewed by: plam
This commit is contained in:
Patrick Lam 2006-01-25 02:54:37 +00:00
parent 6f9fcb5186
commit 16a71eff3e
3 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,13 @@
2006-01-24 James Su <james.su@gmail.com>
reviewed by: plam
* src/fcfreetype.c (FcFreeTypeIsExclusiveLang):
* fc-lang/zh_hk.orth:
Treat zh-hk fonts differently from zh-tw fonts. This patch may
cause fontconfig to treat A-X fonts differently from A-Y fonts;
please mail the fontconfig list if this causes any problems.
2006-01-24 Patrick Lam <plam@mit.edu>
* src/fccache.c (FcDirCacheUnlink, FcDirCacheWrite):
* src/fcfreetype.c (FcFreeTypeQuery):

View File

@ -2237,4 +2237,4 @@
9F99
9F9F
9FA5
F907
20547

View File

@ -97,7 +97,7 @@ FcFreeTypeIsExclusiveLang (const FcChar8 *lang)
for (i = 0; i < NUM_CODE_PAGE_RANGE; i++)
{
if (FcLangCompare (lang, FcCodePageRange[i].lang) != FcLangDifferentLang)
if (FcLangCompare (lang, FcCodePageRange[i].lang) == FcLangEqual)
return FcTrue;
}
return FcFalse;