summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Lam <plam@MIT.EDU>2006-01-25 02:54:37 +0000
committerPatrick Lam <plam@MIT.EDU>2006-01-25 02:54:37 +0000
commit16a71eff3ee0326db3794fa26548106a8a8697f6 (patch)
tree4d8d1a037c76ab595297eef329813c61daed6d22
parent6f9fcb51861fe3066e44a23817f1c700f3475ac0 (diff)
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
-rw-r--r--ChangeLog10
-rw-r--r--fc-lang/zh_hk.orth2
-rw-r--r--src/fcfreetype.c2
3 files changed, 12 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index b4c3c8a8..a851906b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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):
diff --git a/fc-lang/zh_hk.orth b/fc-lang/zh_hk.orth
index 89661f11..1bea8332 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 7f0af319..27dff11c 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;