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: 丁力
Subject: RE: [ft-devel] About the Cmap format 12
Date: Mon, 8 Oct 2007 09:25:49 +0800

I have not use the debug of the freetype. I use the tools "TrueType v1.0 Dump 
Program" which is download from Microsoft websit.
And I see the cmap table in the dump result. 

For example, if I want get the character "壬", and the "壬"'s Unicode is 58EC.
In the font the "壬"'s index is 4766:
                      Char 0002123A -> Index 4764
                      Char 0002123B -> Index 4765
                      Char 0002123C -> Index 4766------------------this is the 
character "壬"
                      Char 0002123D -> Index 4767
                      Char 0002123E -> Index 4768

And I got the table information is:
Subtable  3.   Platform ID:   3
               Specific ID:   10
               'cmap' Offset: 0x00000142
              ->Format: 12 : Segmented coverage (32 bit)
                Length:         40
                Version:        0
                Seg   1 : startCharCode = 00000020, endCharCode = 0000007F, 
startGlyphCode = 2
                Seg   2 : startCharCode = 00020000, endCharCode = 0002A6D6, 
startGlyphCode = 98

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.

Regards,
Dingli 

-----Original Message-----
From: address@hidden [mailto:address@hidden On Behalf Of Masatake YAMATO
Sent: Wednesday, October 03, 2007 12:55 PM
To: address@hidden
Cc: address@hidden
Subject: Re: [ft-devel] About the Cmap format 12

> I could not reproduce the bug Ding Li reported.

How do you think using FT2_DEBUG if Ding Li kindly accepts recompile 
FT2 with defining FT_DEBUG_LEVEL_TRACE?

You can compare debug output of yours and Ding Li's.

Masatake YAMATO


_______________________________________________
Freetype-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/freetype-devel




reply via email to

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