freetype-devel
[Top][All Lists]
Advanced

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

Truetype POST table read incorrectly


From: White, Wesley A.
Subject: Truetype POST table read incorrectly
Date: Thu, 27 Jul 2000 13:51:40 -0500

I think the sfnt file 'ttpost.c' has a problem. The
function in question is 'Load_Post_Names'.

This function calls goto_table to position to the
beginning of the post table. Then it calls
Load_Format_2x to read the format specific
part of the post table.

After the goto_table there should be code that 
skips over the 32 bytes of generic post data that precedes
the format-specific data.

What is happening now is the FormatType field of the post
table is being interpreted as numGlyphs, and so on.

As a work around in my code I cut and pasted code from
ttload.c's TT_Load_PostScript function to skip the 32 bytes.

I first posted this as a bug in FT2 beta 7 and I got no response.
It appears that the same problem exist in beta 8. 

If I am mistaken please let me know.

Thanks,
Wes

Wesley A. White
Senior Programmer/Analyst
Getronics/WANG Government Systems




reply via email to

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