The charcode is the Unicode code point. 0xE38193 is an invalid Unicode code point.
For a quick way to get the Unicode code points for characters, try: http://people.w3.org/rishida/scripts/uniview/uniview.php For a test of Japanese code points try: 0x3042 - あ 0x65E5 0x672C 0x8A9E - 日本語 On Wed, Aug 27, 2008 at 7:10 AM, Hongyu Zhang <[EMAIL PROTECTED]> wrote: > Hello, every one: > > I am a beginner of freeType2 library. > I have a problem about how to get a glyph index of Japanese charactor. > > I use the function FT_Get_Char_Index to get a glyph index. > This function needs a parameter named charcode. > For a English charactor, its charcode is indeed the ASCII code (binary > code), > but for a Japanese charactor, I don't know what the charcode should be? > I am using the default FT_ENCODING_UNICODE charmap which contains Japanese > font. > When I set the charcode to be its binary code (eg. 0xE38193), glyph index 0 > is returned. > > There is anyone who can get the glyph index of the charactor in a Japanese > text ? > please help me. > > Thank you for your support. > > Regards > > Hongyu Zhang > [EMAIL PROTECTED] > > > _______________________________________________ > Freetype mailing list > [email protected] > http://lists.nongnu.org/mailman/listinfo/freetype > > _______________________________________________ Freetype mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/freetype
