freetype-devel
[Top][All Lists]
Advanced

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

[ft-devel] Probable Bug in TrueType pclt table structure


From: Darrell Bellert
Subject: [ft-devel] Probable Bug in TrueType pclt table structure
Date: Wed, 02 Oct 2013 13:37:45 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7

Greetings -

I will first begin with a disclaimer that I am new to freetype and fonts in general, so I may be guilty of a newbie mistake, but I believe I have found a bug in freetype's truetype module with the pclt table structure. In referencing the function tt_face_load_pclt() in ttload.c, we see that following TT_PCLT structure is defined:

#define FT_STRUCTURE  TT_PCLT

      FT_FRAME_START( 54 ),
        FT_FRAME_ULONG ( Version ),
        FT_FRAME_ULONG ( FontNumber ),
        FT_FRAME_USHORT( Pitch ),
        FT_FRAME_USHORT( xHeight ),
        FT_FRAME_USHORT( Style ),
        FT_FRAME_USHORT( TypeFamily ),
        FT_FRAME_USHORT( CapHeight ),
        FT_FRAME_BYTES ( TypeFace, 16 ),
        FT_FRAME_BYTES ( CharacterComplement, 8 ),
        FT_FRAME_BYTES ( FileName, 6 ),
        FT_FRAME_CHAR  ( StrokeWeight ),
        FT_FRAME_CHAR  ( WidthType ),
        FT_FRAME_BYTE  ( SerifStyle ),
        FT_FRAME_BYTE  ( Reserved ),
      FT_FRAME_END

Reviewing the truetype technical specification revision 1.66, I noticed that the SymbolSet field entry is missing from the above structure. I believe the following entry should occur after CapHeight in the above structure:
        FT_FRAME_USHORT( SymbolSet ),

Please confirm.

Thanks,

Darrell





reply via email to

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