CVSROOT: /sources/freetype Module name: freetype2 Changes by: David Turner <freetype> 06/06/04 14:33:08
Modified files: . : ChangeLog src/pfr : pfrobjs.c Log message: * 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 CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/freetype2/ChangeLog?cvsroot=freetype&r1=1.1341&r2=1.1342 http://cvs.savannah.gnu.org/viewcvs/freetype2/src/pfr/pfrobjs.c?cvsroot=freetype&r1=1.34&r2=1.35 Patches: Index: ChangeLog =================================================================== RCS file: /sources/freetype/freetype2/ChangeLog,v retrieving revision 1.1341 retrieving revision 1.1342 diff -u -b -r1.1341 -r1.1342 --- ChangeLog 26 May 2006 06:30:05 -0000 1.1341 +++ ChangeLog 4 Jun 2006 14:33:08 -0000 1.1342 @@ -1,3 +1,13 @@ +2006-06-04 David Turner <[EMAIL PROTECTED]> + + * 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 <[EMAIL PROTECTED]> * builds/unix/unix-cc.in (LINK_LIBRARY): Don't comment out Index: src/pfr/pfrobjs.c =================================================================== RCS file: /sources/freetype/freetype2/src/pfr/pfrobjs.c,v retrieving revision 1.34 retrieving revision 1.35 diff -u -b -r1.34 -r1.35 --- src/pfr/pfrobjs.c 20 Mar 2006 13:32:33 -0000 1.34 +++ src/pfr/pfrobjs.c 4 Jun 2006 14:33:08 -0000 1.35 @@ -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 ) _______________________________________________ Freetype-cvs mailing list Freetype-cvs@nongnu.org http://lists.nongnu.org/mailman/listinfo/freetype-cvs