bugfix: do not erase root x_ppem and y_ppem values in tt_size_init_bytecode
diff --git a/ChangeLog b/ChangeLog
index 7d085af..ef73db4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2007-03-05 David Turner <david@freetype.org>
+ * 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.
diff --git a/src/truetype/ttobjs.c b/src/truetype/ttobjs.c
index e0edc0a..8f849dd 100644
--- a/src/truetype/ttobjs.c
+++ b/src/truetype/ttobjs.c
@@ -595,10 +595,9 @@
/* 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;