shithub: freetype+ttf2subf

Download patch

ref: 0971735dce99e98fc2b79be764494b34d0f152a1
parent: 33779660ba80321de9a6e9e0b93e8d295cf32fb2
author: David Turner <[email protected]>
date: Sun Jun 4 10:33:08 EDT 2006

* 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

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
--- 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 )