freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Devel] question about gd 1.8.4 chinese char.


From: Edwin
Subject: [Devel] question about gd 1.8.4 chinese char.
Date: Wed, 11 Jul 2001 09:24:04 -0400

Dear Sir,
 
    Hi, I was trying to use the gd 1.8.4 library with freetype 2.0.1. to draw chinese big5 words.
    However, I have problem drawing them.
    The   FT_UInt  code_to_index4( TT_CMapTable*  cmap, FT_ULong  charCode ) function in ttcmap.c cannot located a correct big5 char index. For example, to get the code index of a Chinese charatcer (let's call it  "xx" in this mail) with big5 code HEX "AFAB" (44971). We pass charcode=44971 into the FT_UInt  code_to_index4( TT_CMapTable*  cmap, FT_ULong  charCode ), it cannot find any match. (By the way we use MingLiu.ttc). On the other hand, if we pass the charCode = 64025 (HEX "FA19") into the function, it will find the index for the "xx" character that is supposed to have big5 code = 44971. 
 
(1) It seems the big5 code is not loaded into the right index range when the cmap4 segments was built. 
(2) Do you have any big5 sample that works with true type 2.0.1.?
 
Please kindly help.
Thank you.
 
Edwin

reply via email to

[Prev in Thread] Current Thread [Next in Thread]