зеркало из https://github.com/stride3d/freetype.git
* src/cff/cffparse.c (cff_parse_fixed_scaled): Fix thinko which
resulted in incorrect scaling. This fixes Savannah bug #23973.
This commit is contained in:
Родитель
17e6901112
Коммит
eba3eeecd9
|
@ -1,3 +1,8 @@
|
|||
2008-08-04 Bram Tassyns <bramt@enfocus.be>
|
||||
|
||||
* src/cff/cffparse.c (cff_parse_fixed_scaled): Fix thinko which
|
||||
resulted in incorrect scaling. This fixes Savannah bug #23973.
|
||||
|
||||
2008-08-04 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
Be more tolerant w.r.t. invalid entries in SFNT table directory.
|
||||
|
|
|
@ -406,10 +406,9 @@
|
|||
cff_parse_fixed_scaled( FT_Byte** d,
|
||||
FT_Int scaling )
|
||||
{
|
||||
return **d ==
|
||||
30 ? cff_parse_real( d[0], d[1], scaling, NULL )
|
||||
: (FT_Fixed)FT_MulFix( cff_parse_integer( d[0], d[1] ) << 16,
|
||||
power_tens[scaling] );
|
||||
return **d == 30 ? cff_parse_real( d[0], d[1], scaling, NULL )
|
||||
: ( cff_parse_integer( d[0], d[1] ) *
|
||||
power_tens[scaling] ) << 16;
|
||||
}
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче