Hi, Current fontconfig will only recognize zh-hk fonts as zh-tw fonts. However they are different. The attached small patch can fix this issue. I removed 0xF907 from zh_hk.orth file, because some popular zh-hk fonts don't have this char, and this char is unimportant. Regards James Su
--- src/fcfreetype.c.old 2006-01-05 19:57:10.000000000 +0800 +++ src/fcfreetype.c 2006-01-05 19:57:21.000000000 +0800 @@ -107,7 +107,7 @@ 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; --- fc-lang/zh_hk.orth.old 2006-01-05 23:09:58.000000000 +0800 +++ fc-lang/zh_hk.orth 2006-01-05 23:10:02.000000000 +0800 @@ -2237,4 +2237,3 @@ 9F99 9F9F 9FA5 -F907
_______________________________________________ Fontconfig mailing list Fontconfig@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/fontconfig