Hi, Werner had already given the answer, but it's a pity for japanese macintosh user to say nothing.
I don't have exactly same font with Deron, but I've bought several TrueType and ATM font packages from Dynalab. I want to add 2 supplementary comments. 1) Some Dynalab font has problematic cmap for Shift-JIS. If you have Osaka font on Mac OS X, ftdump will list 3 cmaps: Unicode, Roman, and Shift-JIS. There's no problem. But, some Japanese fonts from Dynalab, ftdump won't list Shift-JIS cmap, in some cases. This is because Dynalab's TTF often includes problematic cmap for Shift-JIS. FreeType2 ignores it. 2) Shift-JIS variants on MacOS At least, there were 2 kinds of Shift-JIS variants on Japanese Macintosh. One was designed for KanjiTalk 6 (MacOS 6) and another was designed for KanjiTalk 7 (MacOS 7). I think there's no official method to distinguish them. I guess if PostScript name of the font finishes with 83pv-RKSJ-H, it's supposed to be Shift-JIS for KT6, and if it finishes with 90pv-RKSJ-H, it's supposed to be Shift-JIS for KT7. However, there are Japanese fonts without such extensions (e.g. Apple's Osaka). Regards, mpsuzuki On Tue, 01 Jan 2008 11:00:07 +0100 (CET) Werner LEMBERG <[EMAIL PROTECTED]> wrote: > >> For ftface->charmaps[1] >> encoding=0(!!) platform=1 encoding_id=1 (iterating using >> FT_Get_First/Next_Char yeilds 8589 chars). > >Hmm, PID/EID 1,1 is Japanese on a Mac, so FreeType is correct in >saying that encoding = FT_ENCODING_NONE because it doesn't contain >mapping tables. > >> This font works with OS X applications, so I wonder how do I >> determine what the encoding is for "0" in this case? > >Value `0' means that FreeType can't handle it, not that it is an >unknown encoding! You have to use other means handle the encoding, >for example, looking at the PID/EID pair directly. > >> 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. > >Yes. I'm quite sure that Japanese for older Macs is always encoded in >SJIS. However, you should look up the Mac documentation to verify >this. > >> How would I determine that programatically using FreeType? > >You can't. > >> 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? > >The latter. > > > Werner > > >_______________________________________________ >Freetype-devel mailing list >[email protected] >http://lists.nongnu.org/mailman/listinfo/freetype-devel -- 鈴木 _______________________________________________ Freetype-devel mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/freetype-devel
