freetype-devel
[Top][All Lists]
Advanced

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

[ft-devel] Japenese OTF font with funny encoding


From: PageStream Support
Subject: [ft-devel] Japenese OTF font with funny encoding
Date: Mon, 31 Dec 2007 16:18:02 -0700
User-agent: Thunderbird 2.0.0.9 (Macintosh/20071031)

New issue which may or may not be FreeType issue. A tester has identified that the Japenese OTF font DFPKaiSho-SB didn't work right. Looking at it, it doesn't include a Unicode encoding vector. After opening the font, I dumped the charmaps. This is what I get:

ftface->num_charmaps = 2

For ftface->charmaps[0]
encoding=61726D6E(armn) platform=1 encoding_id=0 (iterating using FT_Get_First/Next_Char yeilds 255 chars).

For ftface->charmaps[1]
encoding=0(!!) platform=1 encoding_id=1 (iterating using FT_Get_First/Next_Char yeilds 8589 chars).

This font works with OS X applications, so I wonder how do I determine what the encoding is for "0" in this case? The charcodes that FT_Get_First/Next_Char yields ranges from 0-128, 33088->40956 and 57408->60924.

Looking at the characters, it _looks_ like they are Shift-JIS encoded. How would I determine that programatically using FreeType?

Second, can I supply a synthetic charmap somehow to synthesis a Unicode table, or do I need to convert my Unicode to Shift-JIS and just use the existing charmap?

Deron

- Deron Kazmaier - address@hidden
Grasshopper LLC Publishing - http://www.pagestream.org
PageStream DTP for Amiga, Linux, Macintosh, and Windows





reply via email to

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