diff --git a/ChangeLog b/ChangeLog index 1ed667691..1f59d1118 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2006-06-04 David Turner + + * 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 * builds/unix/unix-cc.in (LINK_LIBRARY): Don't comment out diff --git a/src/pfr/pfrobjs.c b/src/pfr/pfrobjs.c index 6c0ce903f..b566d73ad 100644 --- a/src/pfr/pfrobjs.c +++ b/src/pfr/pfrobjs.c @@ -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 )