From: Patrick Lam Date: Wed, 25 Jan 2006 02:54:37 +0000 (+0000) Subject: Treat zh-hk fonts differently from zh-tw fonts. This patch may cause X-Git-Tag: fc-2_3_94~62 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=16a71eff3ee0326db3794fa26548106a8a8697f6;p=fontconfig.git 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 --- diff --git a/ChangeLog b/ChangeLog index b4c3c8a..a851906 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2006-01-24 James Su + 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 * src/fccache.c (FcDirCacheUnlink, FcDirCacheWrite): * src/fcfreetype.c (FcFreeTypeQuery): diff --git a/fc-lang/zh_hk.orth b/fc-lang/zh_hk.orth index 89661f1..1bea833 100644 --- a/fc-lang/zh_hk.orth +++ b/fc-lang/zh_hk.orth @@ -2237,4 +2237,4 @@ 9F99 9F9F 9FA5 -F907 +20547 diff --git a/src/fcfreetype.c b/src/fcfreetype.c index 7f0af31..27dff11 100644 --- a/src/fcfreetype.c +++ b/src/fcfreetype.c @@ -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;