freetype-devel
[Top][All Lists]
Advanced

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

Re: [ft-devel] the font can not be displayed correct


From: mpsuzuki
Subject: Re: [ft-devel] the font can not be displayed correct
Date: Fri, 5 Jan 2007 15:16:45 +0900

Hi,

On Fri, 5 Jan 2007 13:53:51 +0800
DingLi(丁力) <address@hidden> wrote:

>"1.jpg" is incorrect image by the ftview, and
>the "2.jpg" is the correct image.
>
>I have known why it can not be displayed correctly.
>Because the font file is not complete, it lack of
>several tables for the hint, so It is correct, when
>I opened the auto hint of the ftview.

thank you.

I've built vanilla freetype2 on latest CVS, and
I could not reproduce 1.jpg. My result is same
with 2.jpg. Please describe detail of your ftview.

By commenting-out following 2 macros:

/* #define TT_CONFIG_OPTION_BYTECODE_INTERPRETER */
/* #define TT_CONFIG_OPTION_UNPATENTED_HINTING */

I disabled bytecode interpreter, but the result is
same with 1.jpg. I'm not sure whether your trouble
is related with hinting.

My analysis of the font file is following, no cmap
but not broken.

[sfnt] version = 0x00 0x01 0x00 0x00
[sfnt] numTables = 0x0009
       tag hmtx offset 0x000003d4 length 0x00000018 checkSum 0x29018003
       tag hhea offset 0x000003b0 length 0x00000024 checkSum 0xe4020000
       tag maxp offset 0x00000408 length 0x00000020 checkSum 0xa8026901
       tag post offset 0x000006ce length 0x00000020 checkSum 0x0c00edff
       tag head offset 0x0000037a length 0x00000036 checkSum 0x1e2560a5
       tag loca offset 0x000003ec length 0x0000001c checkSum 0x70040000
       tag name offset 0x00000428 length 0x000002a6 checkSum 0x0f152ff3
       tag glyf offset 0x000000f2 length 0x00000288 checkSum 0xa6f7136f
       tag OS/2 offset 0x0000009c length 0x00000056 checkSum 0xda67ed4c

        [OS/2] usWeightClass = 0x0190, usWidthClass = 0x0005
        [OS/2] fsType = 0x0000
        [OS/2] sFamilyClass = 0x0000
        [OS/2] panose[2, 1, 6, 0, 3, 1, 1, 1, 1, 1]
                UnicodeRange: 0 [Basic Latin]
                UnicodeRange: 49 [Hiragana]
                UnicodeRange: 50 [Katakana]
                UnicodeRange: 51 [Bopomofo, Extended Bopomofo]
                UnicodeRange: 59 [CJK Unified Ideographs, Radicals, Description 
and Extension A]
                CodePageRange: 18 [Chinese: Simplified chars--PRC and Singapore]

        [loca] glyph[0] starts @ 0
        [loca] glyph[1] starts @ 0
        [loca] glyph[2] starts @ 0
        [loca] glyph[3] starts @ 0
        [loca] glyph[4] starts @ 270
        [loca] glyph[5] starts @ 474
        [loca] glyph[6] starts @ 648





reply via email to

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