freetype-devel
[Top][All Lists]
Advanced

[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: Frank Faubert
Subject: RE: [Devel] FT_Get_Char_Index choosing the wrong glyph with Shift-JIS charmap?
Date: Tue, 30 Jul 2002 21:24:19 -0400

Hello Werner,

Thank you very much for your assistance with this matter.  I have just
tried the current snapshot and I have the same problem.  I also tried
ftview from the current ft2demos snapshot and have the same problem.
Just to verify, I am running the following command:

ftview -e sjis -f 33115 12 font.ttf

Ftview displays 'first char code = "0x815b"' in the window.  The first
glyph that it displays is still 'P'.  However, when I use windows
character map to view the font the correct glyph is displayed at code
0x815b.

The font that I am using is a .ttf licensed from AGFA Monotype.  I tried
to reproduce this with msgothic.ttc copied from Windows XP but I get the
ftview error 'could not find/open any font file'.  I do not believe that
I have any other .ttf Japanese fonts to test this with.

Do you have any ideas how I can debug this further?  If you like I could
e-mail you (off the list) a copy of the font that I am using.

Thank you again for your assistance,
-Frank

-----Original Message-----
From: address@hidden [mailto:address@hidden On
Behalf Of Werner LEMBERG
Sent: Tuesday, July 30, 2002 6:58 PM
To: address@hidden; address@hidden
Subject: Re: [Devel] FT_Get_Char_Index choosing the wrong glyph with
Shift-JIS charmap?



> 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

_______________________________________________
Devel mailing list
address@hidden
http://www.freetype.org/mailman/listinfo/devel




reply via email to

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