forked from minhngoc25a/freetype2
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:
parent
dc20faaf4c
commit
46e05c443b
10
ChangeLog
10
ChangeLog
|
@ -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.
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue