Fix Savannah bug #23786.

* src/truetype/ttobjs.c (tt_size_init_bytecode): Don't reset x_ppem
and y_ppem.  Otherwise the `*_CVT_Stretched' functions in ttinterp.c
get never called.
An anonymous guy suggested this change on Savannah, and it seems to
be the right solution.
This commit is contained in:
Werner Lemberg 2009-07-17 22:49:34 +02:00
parent dc20faaf4c
commit 46e05c443b
2 changed files with 14 additions and 7 deletions

View File

@ -1,3 +1,13 @@
2009-07-17 Werner Lemberg <wl@gnu.org>
Fix Savannah bug #23786.
* src/truetype/ttobjs.c (tt_size_init_bytecode): Don't reset x_ppem
and y_ppem. Otherwise the `*_CVT_Stretched' functions in ttinterp.c
get never called.
An anonymous guy suggested this change on Savannah, and it seems to
be the right solution.
2009-07-15 Werner Lemberg <wl@gnu.org>
* docs/release: Updated.

View File

@ -611,18 +611,15 @@
/* Set default metrics */
{
FT_Size_Metrics* metrics = &size->metrics;
TT_Size_Metrics* metrics2 = &size->ttmetrics;
TT_Size_Metrics* metrics = &size->ttmetrics;
metrics->x_ppem = 0;
metrics->y_ppem = 0;
metrics2->rotated = FALSE;
metrics2->stretched = FALSE;
metrics->rotated = FALSE;
metrics->stretched = FALSE;
/* set default compensation (all 0) */
for ( i = 0; i < 4; i++ )
metrics2->compensations[i] = 0;
metrics->compensations[i] = 0;
}
/* allocate function defs, instruction defs, cvt, and storage area */