freetype-devel
[Top][All Lists]
Advanced

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

Re: [Devel] question about gd 1.8.4 chinese char.


From: Werner LEMBERG
Subject: Re: [Devel] question about gd 1.8.4 chinese char.
Date: Sat, 14 Jul 2001 06:08:13 +0200 (CEST)

> 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.

mingliu.ttc has a 3,1 cmap (as all recent Windows fonts have).  This
is Unicode!  You must first convert your Big5 input character to
Unicode.


    Werner



reply via email to

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