* src/pfr/pfrobjs.c (pfr_face_init): fix the computation

of 'face->num_glyphs' which missed the last glyph, due to
  the offset-by-1 computation, since the PFR format doesn't
  guarantee that glyph index 0 corresponds to the "missing
  glyph"

  should fix bug #16668
This commit is contained in:
David Turner 2006-06-04 14:33:08 +00:00
parent 33779660ba
commit 0971735dce
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,13 @@
2006-06-04 David Turner <david@freetype.org>
* src/pfr/pfrobjs.c (pfr_face_init): fix the computation
of 'face->num_glyphs' which missed the last glyph, due to
the offset-by-1 computation, since the PFR format doesn't
guarantee that glyph index 0 corresponds to the "missing
glyph"
should fix bug #16668
2006-05-25 Werner Lemberg <wl@gnu.org>
* builds/unix/unix-cc.in (LINK_LIBRARY): Don't comment out

View File

@ -128,7 +128,7 @@
pfrface->face_index = face_index;
pfrface->num_glyphs = phy_font->num_chars;
pfrface->num_glyphs = phy_font->num_chars + 1;
pfrface->face_flags = FT_FACE_FLAG_SCALABLE;
if ( (phy_font->flags & PFR_PHY_PROPORTIONAL) == 0 )