From 91aaf3267bf35af8ad601edc57caf751e5266d2d Mon Sep 17 00:00:00 2001 From: David Turner Date: Mon, 5 Mar 2007 18:18:52 +0000 Subject: [PATCH] bugfix: do not erase root x_ppem and y_ppem values in tt_size_init_bytecode --- ChangeLog | 4 ++++ src/truetype/ttobjs.c | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7d085af38..ef73db4dd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2007-03-05 David Turner + * 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 e0edc0a4e..8f849dd87 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;