[autofit] Fix Savannah bug #44241.

* src/autofit/aflatin.c (af_latin_metrics_init_blues): Reject glyphs
with less than 3 points.
This commit is contained in:
Werner Lemberg 2015-03-03 11:23:45 +01:00
parent 43d4901f32
commit a374c9cfe7
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2015-03-03 Werner Lemberg <wl@gnu.org>
[autofit] Fix Savannah bug #44241.
* src/autofit/aflatin.c (af_latin_metrics_init_blues): Reject glyphs
with less than 3 points.
2015-03-02 Werner Lemberg <wl@gnu.org>
Simplify `TYPEOF' macro.

View File

@ -362,9 +362,10 @@
error = FT_Load_Glyph( face, glyph_index, FT_LOAD_NO_SCALE );
outline = face->glyph->outline;
if ( error || outline.n_points <= 0 )
/* reject glyphs that don't produce any rendering */
if ( error || outline.n_points <= 2 )
{
FT_TRACE5(( " U+%04lX contains no outlines\n", ch ));
FT_TRACE5(( " U+%04lX contains no (usable) outlines\n", ch ));
continue;
}