> I encountered one TTF font that fails to load using FreeType (the
> font is attached).  The font was embedded in a PDF document and it
> renders fine in Acrobat.  The problem is that the embedded font says
> that there are 12 tables, but there are only 8 (most likely an
> omission/by-product of font subsetting).  By tweaking
> check_table_dir in ttload.c, I managed to load the font (but I
> thought FT should be able to go around this types of errors as
> well).

Basically, I agree.  It would be possible to rewrite `check_table_dir'
and `tt_face_load_font_dir' so that it ignores table directory entries
with invalid offsets instead.  Ideally, there should be support for
FT_VALIDATE_xxx settings so that strict behaviour can be enforced.

Can you provide a patch?


    Werner


_______________________________________________
Freetype-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/freetype-devel

Reply via email to