[Top][All Lists]
[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
- Re: [ft-devel] About the Cmap format 12, Werner LEMBERG, 2007/10/01
- Re: [ft-devel] About the Cmap format 12, mpsuzuki, 2007/10/02
- Re: [ft-devel] About the Cmap format 12, Masatake YAMATO, 2007/10/03
- RE: [ft-devel] About the Cmap format 12, 丁力, 2007/10/07
- Re: [ft-devel] About the Cmap format 12,
Werner LEMBERG <=
- Re: [ft-devel] About the Cmap format 12, George Williams, 2007/10/08
- Re: [ft-devel] About the Cmap format 12, Werner LEMBERG, 2007/10/08
- Re: [ft-devel] About the Cmap format 12, George Williams, 2007/10/08
- Re: [ft-devel] About the Cmap format 12, mpsuzuki, 2007/10/08
- Re: [ft-devel] About the Cmap format 12, George Williams, 2007/10/08
- Re: [ft-devel] About the Cmap format 14, George Williams, 2007/10/08
- Re: [ft-devel] About the Cmap format 14, Werner LEMBERG, 2007/10/10
- Re: [ft-devel] About the Cmap format 14, George Williams, 2007/10/10
- Re: [ft-devel] About the Cmap format 14, Werner LEMBERG, 2007/10/11
- Re: [ft-devel] About the Cmap format 14, David Turner, 2007/10/19