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

This commit is contained in:
David Turner 2007-03-05 18:18:52 +00:00
parent 085bc6e2b2
commit 91aaf3267b
2 changed files with 5 additions and 2 deletions

View File

@ -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.

View File

@ -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;