[autofit] Fix Savannah bug #44241.

* src/autofit/aflatin.c (af_latin_metrics_init_blues): Reject glyphs
with less than 3 points.
2.6.5
Werner Lemberg 10 years ago
parent 43d4901f32
commit a374c9cfe7
  1. 7
      ChangeLog
  2. 5
      src/autofit/aflatin.c

@ -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.

@ -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;
}

Loading…
Cancel
Save