ref: 1749ae20a7ef313c4a23a470f8f2629abee71aad
parent: 94b79e74532373ad8da0eb28d1fb08dd754647ff
author: Infinality <[email protected]>
date: Tue Dec 18 02:23:09 EST 2012
[truetype] Minor performance enhancement.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2012-12-18 Infinality <[email protected]>
+
+ [truetype] Minor performance enhancement.
+
+ * src/truetype/ttgload.c: (TT_Process_Simple_Glyph): Use FT_MulFix
+ instead of FT_MulDiv.
+
2012-12-17 Infinality <[email protected]>
[truetype] Remove unusued code and variables.
--- a/src/truetype/ttgload.c
+++ b/src/truetype/ttgload.c
@@ -931,10 +931,9 @@
/* compensate for any scaling by de/emboldening; */
/* the amount was determined via experimentation */
if ( x_scale_factor != 1000 && ppem > 11 )
- FT_Outline_EmboldenXY( outline,
- FT_MulDiv( 80 * ppem,
- 1000 - x_scale_factor,
- 0x1000L ), 0 );
+ FT_Outline_EmboldenXY( outline,
+ FT_MulFix( 1280 * ppem, 1000 - x_scale_factor ),
+ 0 );
#else
/* scale the glyph */
if ( ( loader->load_flags & FT_LOAD_NO_SCALE ) == 0 )