shithub: freetype+ttf2subf

Download patch

ref: 91aaf3267bf35af8ad601edc57caf751e5266d2d
parent: 085bc6e2b27297ea55a5b6d64a1425c7cd649385
author: David Turner <[email protected]>
date: Mon Mar 5 13:18:52 EST 2007

bugfix: do not erase root x_ppem and y_ppem values in tt_size_init_bytecode

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2007-03-05  David Turner  <[email protected]>
 
+	* src/truetype/ttobs.c (tt_size_init_bytecode): bugfix, we need to
+	clear the x_ppem and y_ppem fields of the TT_Size.metrics structure,
+	note those of TT_Size.root.metrics. duh !!
+
 	* src/type1/t1afm.c (T1_Read_PFM): bug fix: read the kerning values
 	as 16-bit *signed* values, not unsigned ones.
 
--- a/src/truetype/ttobjs.c
+++ b/src/truetype/ttobjs.c
@@ -595,9 +595,8 @@
 
     /* Set default metrics */
     {
-      FT_Size_Metrics*  metrics  = &size->root.metrics;
+      FT_Size_Metrics*  metrics  = &size->metrics;
       TT_Size_Metrics*  metrics2 = &size->ttmetrics;
-
 
       metrics->x_ppem = 0;
       metrics->y_ppem = 0;