[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Devel] FT_Get_Char_Index choosing the wrong glyph with Shift-JIS ch
From: |
Werner LEMBERG |
Subject: |
Re: [Devel] FT_Get_Char_Index choosing the wrong glyph with Shift-JIS charmap? |
Date: |
Wed, 31 Jul 2002 00:58:24 +0200 (CEST) |
> Please ignore my earlier question about Shift-JIS. After a little
> more debugging I believe that I am correctly calling
> FT_Get_Char_Index. I have simplified my test case to simply wanting
> to render the Japanese character ー (HEX: 815B). I have verified
> that I am calling FT_Select_Charmap with ft_encoding_sjis and it is
> succeeding. I have verified using Windows Character Map application
> that the font I am using contains the proper character at 0x815B
> (U+30FC) with the Character Set set to "Windows: Japanese"
> (Shift-JIS). However, FreeType 2.1.2 is rendering "P" 0x50 (U+0050)
> instead of ー. I also tested this with 2.0.9 and got the same
> result.
Please try the current snapshot from both FreeType 2 and ft2demos.
I've just verified that
ftview -e sjis <size> <font>
gives the right result in case the SJIS cmap is correct. Perhaps it
helps if you compare your code with the one in ftview.c.
Werner