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

Reply via email to