[Top][All Lists]

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

[ft-devel] Re: TTF font doesn't load in FT.

From: Werner LEMBERG
Subject: [ft-devel] Re: TTF font doesn't load in FT.
Date: Thu, 20 Jul 2006 15:29:16 +0200 (CEST)

> 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?


reply via email to

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