[prev in list] [next in list] [prev in thread] [next in thread]
List: freetype-devel
Subject: RE: [Devel] Working with Shift-JIS encoded characters?
From: "Frank Faubert" <frank () sane ! com>
Date: 2002-07-30 16:16:00
[Download RAW message or body]
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: devel-admin@freetype.org [mailto:devel-admin@freetype.org] On Behalf Of \
YAMANO-UCHI Hidetoshi (ŽR" ‰p•q)
Sent: Tuesday, July 30, 2002 11:34 AM
To: devel@freetype.org
Subject: Re: [Devel] Working with Shift-JIS encoded characters?
Hello,
From: "Frank Faubert" <frank@sane.com>
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
Devel@freetype.org
http://www.freetype.org/mailman/listinfo/devel
_______________________________________________
Devel mailing list
Devel@freetype.org
http://www.freetype.org/mailman/listinfo/devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic