freetype-devel
[Top][All Lists]
Advanced

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

Re: [ft-devel] About the Cmap format 12


From: Werner LEMBERG
Subject: Re: [ft-devel] About the Cmap format 12
Date: Mon, 08 Oct 2007 07:18:18 +0200 (CEST)

> I have not use the debug of the freetype. I use the tools "TrueType
> v1.0 Dump Program" which is download from Microsoft website.  And I
> see the cmap table in the dump result.
>
> For example, if I want get the character "壬", and the "壬"'s
> Unicode is 58EC.

Well, simsunb.ttf simply doesn't contain that code point!  It only
contains glyphs from the CJK B extension (thus the `b' in the font's
name) which starts at U+20000.  So you are correct that U+58EC isn't
covered.

> In the font the "壬"'s index is 4766:
>                     Char 0002123C -> Index 4766

As you can see, this is U+2123C -- have a look at the corresponding
PDF charts found at www.unicode.org.

> I have see the code which parse the format 12, I don't think it can
> deal with this cmap table.  So in my project it always get glyph
> index 0.

You have to use simsun.ttf, not simsunb.ttf...

BTW, you should do a closer look: U+2123C is *not* `壬': Instead, the
lowest horizontal stroke is longer than the middle one.  This is a
glyph variant from the CNS 11643 character set.


    Werner

reply via email to

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