freetype-devel
[Top][All Lists]
Advanced

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

RE: [Devel] Working with Shift-JIS encoded characters?


From: Frank Faubert
Subject: RE: [Devel] Working with Shift-JIS encoded characters?
Date: Tue, 30 Jul 2002 12:16:00 -0400

Hello,

Thank you very much for your reply.  That is indeed the Japanese sentence that 
I would like to render.  However, if I pass each of those hex codes through to 
FT_Get_Char_Index, garbage (mostly a bunch of squares) is rendered instead of 
the proper glyphs.  I'm guessing that I somehow need to transform the Shift-JIS 
into something else before I pass it to FT_Get_Char_Index, but I am not sure 
what.

At this point I'd be happy to read any documentation on the subject, even if it 
is not in English.

Thank you again,
-Frank

-----Original Message-----
From: address@hidden [mailto:address@hidden On Behalf Of YAMANO-UCHI Hidetoshi 
(ŽR“à ‰p•q)
Sent: Tuesday, July 30, 2002 11:34 AM
To: address@hidden
Subject: Re: [Devel] Working with Shift-JIS encoded characters?


Hello,

From: "Frank Faubert" <address@hidden>
Subject: [Devel] Working with Shift-JIS encoded characters?
Date: Mon, 29 Jul 2002 18:33:12 -0400

> However, it is unclear to me what I need to pass to FT_Get_Char_Index to
> get the correct glyph id.  The string (in hex) that I am trying to
> render is:
> 
> 8D C5 8F 89 82 C9 89 7B 97 97 82 B3 82 EA 82 BD 83 79 81 5B 83 57

8DC5 8F89 82C9 897B 9797 82B3 82EA 82BD 8379 815B 8357

The result is the following Japanese sentence.

最初に閲覧されたページ

> Is there any documentation on what I need to do to these characters in
> order to properly call FT_Get_Char_Index?

I do not know any english documents on the web.  But the encoding rule
is faily simple.

* ASCII or JIS Roman
byte range              0x20 - 0x7f
* Half width katakana
byte range              0xa1 - 0xdf
* JISX0208
first byte range        0x80 - 0x9f, 0xe0 - 0xef

---- YAMANO-UCHI, Hidetoshi

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




reply via email to

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