[truetype] Minor performance enhancement.
This commit is contained in:
parent
94b79e7453
commit
1749ae20a7
|
@ -1,3 +1,10 @@
|
||||||
|
2012-12-18 Infinality <infinality@infinality.net>
|
||||||
|
|
||||||
|
[truetype] Minor performance enhancement.
|
||||||
|
|
||||||
|
* src/truetype/ttgload.c: (TT_Process_Simple_Glyph): Use FT_MulFix
|
||||||
|
instead of FT_MulDiv.
|
||||||
|
|
||||||
2012-12-17 Infinality <infinality@infinality.net>
|
2012-12-17 Infinality <infinality@infinality.net>
|
||||||
|
|
||||||
[truetype] Remove unusued code and variables.
|
[truetype] Remove unusued code and variables.
|
||||||
|
|
|
@ -931,10 +931,9 @@
|
||||||
/* compensate for any scaling by de/emboldening; */
|
/* compensate for any scaling by de/emboldening; */
|
||||||
/* the amount was determined via experimentation */
|
/* the amount was determined via experimentation */
|
||||||
if ( x_scale_factor != 1000 && ppem > 11 )
|
if ( x_scale_factor != 1000 && ppem > 11 )
|
||||||
FT_Outline_EmboldenXY( outline,
|
FT_Outline_EmboldenXY( outline,
|
||||||
FT_MulDiv( 80 * ppem,
|
FT_MulFix( 1280 * ppem, 1000 - x_scale_factor ),
|
||||||
1000 - x_scale_factor,
|
0 );
|
||||||
0x1000L ), 0 );
|
|
||||||
#else
|
#else
|
||||||
/* scale the glyph */
|
/* scale the glyph */
|
||||||
if ( ( loader->load_flags & FT_LOAD_NO_SCALE ) == 0 )
|
if ( ( loader->load_flags & FT_LOAD_NO_SCALE ) == 0 )
|
||||||
|
|
Loading…
Reference in New Issue