[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft] FT_Get_Advance() and FT_LOAD_NO_HINTING
From: |
Werner LEMBERG |
Subject: |
Re: [ft] FT_Get_Advance() and FT_LOAD_NO_HINTING |
Date: |
Wed, 06 Mar 2013 16:03:57 +0100 (CET) |
>> I just found that FT_Get_Advance() with FT_LOAD_NO_HINTING flag
>> gives 0 for CFF fonts with embedded bitmaps (EBDT, EBLC) but I'm
>> not sure if this is a bug or a feature.
>
> After digging a bit, this seems like a bug to me, the #ifdef block
> starting from 2626 in src/cff/cffgload.c never sets
> linearHorizAdvance/linearVertAdvance if bitmaps are found, unlike
> the equivalent code in src/truetype/ttgload.c.
Yes, it's a bug. Will have a look how to fix this gracefully, this
is, without completely parsing the glyph charstrings.
> Let me know if test fonts are needed.
I think I have a CFF within an SFNT wrapper which contains embedded
bitmaps, thanks.
Werner