[Top][All Lists]

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

Re: [ft] How to get a glyph index of Japanese charactor

From: Daniel Wyatt
Subject: Re: [ft] How to get a glyph index of Japanese charactor
Date: Wed, 27 Aug 2008 09:26:32 -0400

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:

For a test of Japanese code points try:
0x3042 - あ
0x65E5 0x672C 0x8A9E - 日本語

On Wed, Aug 27, 2008 at 7:10 AM, Hongyu Zhang <address@hidden> 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
>                          address@hidden
> _______________________________________________
> Freetype mailing list
> address@hidden

reply via email to

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