Hi, The attachment is updated patch. Regards James Su On 1/25/06, Patrick Lam <plam@xxxxxxx> wrote: > Zhe Su wrote: > > Hi, > > However, with this patch, some Simplified Chinese fonts may be > > detected to support zh-hk as well. So I'm just thinking if it's ok to > > add a code U+20547 into zh_hk.orth, which is an additional Chinese > > chars in CJK-Ext B required by HKSCS-2001 or later. The big5 code of > > this char is 0x FA40, which was mapped to U+E000 in old HKSCS > > standard. Then all available Simplified Chinese fonts will be filtered > > out. > > If you still think this is a good solution, send me a patch and I'll > check it in; I don't really know enough about the issues involved here. > > pat >
--- 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-06 15:03:06.000000000 +0800 @@ -2237,4 +2237,4 @@ 9F99 9F9F 9FA5 -F907 +20547
_______________________________________________ Fontconfig mailing list Fontconfig@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/fontconfig