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
Hi,
Hongyu Zhang wrote (2008/08/27 20:10):
I am using the default FT_ENCODING_UNICODE charmap which contains Japanese
font.
Basically it's OK. Some legacy fonts designed for classic MacOS
have only Shift-JIS encoding (no Unicode encoding interface),
but most fonts produced recently have
suzuki toshiya wrote (2008/08/27 22:25):
When I set the charcode to be its binary code (eg. 0xE38193), glyph index 0
is returned.
Hmm, I'm not sure what the encoding you wanted use.
Regarding the 24bit length of 0xE38193, I guess you
wanted to use UTF-8. Please try UCS-4 codepoint
(e.g.