Commit 47c14b9db3ebb058756971f0164a2fdc9125903a

David Turner 2000-10-27T00:53:16

fixing a small bug in FT_Glyph_To_Bitmap: the glyph advance wasn't copied to the bitmap !!

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/base/ftglyph.c b/src/base/ftglyph.c
index 47d61ca..3026170 100644
--- a/src/base/ftglyph.c
+++ b/src/base/ftglyph.c
@@ -829,6 +829,9 @@
       if ( destroy )
         FT_Done_Glyph( glyph );
 
+      /* copy advance - thanks Karsten ;-) */
+      bitmap->root.advance = glyph->advance;
+      
       *the_glyph = FT_GLYPH( bitmap );
     }