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: Thu, 1 Aug 2002 11:49:31 -0400

Hello Werner,

Thank you for the pointer to fonttools.  I have confirmed that the SJIS
font map in the font that we licensed from AGFA Monotype is broken.  Now
for the more difficult task of making them agree... :)

Thank you again for taking the time to help me with this issue, it is
truly appreciated!

-Frank

-----Original Message-----
From: address@hidden [mailto:address@hidden On
Behalf Of Werner LEMBERG
Sent: Wednesday, July 31, 2002 7:59 AM
To: address@hidden; address@hidden
Subject: Re: [Devel] FT_Get_Char_Index choosing the wrong glyph with
Shift-JIS charmap?



> I also tried ftview from the current ft2demos snapshot and have the
> same problem.

It seems you have a problem with the font...

> Just to verify, I am running the following command:
> 
> ftview -e sjis -f 33115 12 font.ttf

Exactly.

> 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.

Are you sure that your font's SJIS cmap is OK?  For my Japanese font
it works fine.

> 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'.

This is because msgothic.ttc doesn't contain an SJIS cmap, AFAIK.

> I do not believe that I have any other .ttf Japanese fonts to test
> this with.

You should use Just van Rossum's fonttools package (written in Python)
to disassemble your font.  Then you can easily check whether the SJIS
table is correct.  You can get it from fonttools.sf.net (check out the
CVS version).

> you like I could e-mail you (off the list) a copy of the font that I
> am using.

Please not since I'm sitting in Taiwan, using a slow modem line to
fetch my mail directly from Germany...


    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]