summaryrefslogtreecommitdiff
path: root/src/truetype/ttgload.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/truetype/ttgload.c')
-rw-r--r--src/truetype/ttgload.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/truetype/ttgload.c b/src/truetype/ttgload.c
index 008b850ab..08718db0e 100644
--- a/src/truetype/ttgload.c
+++ b/src/truetype/ttgload.c
@@ -913,10 +913,11 @@
#ifdef TT_CONFIG_OPTION_SUBPIXEL_HINTING
/* scale, but only if enabled and only if TT hinting is being used */
if ( IS_HINTED( loader->load_flags ) )
- x_scale_factor = scale_test_tweak( face, family, ppem, style,
- loader->glyph_index,
- sph_X_SCALING_Rules,
- SPH_X_SCALING_RULES_SIZE );
+ x_scale_factor = sph_test_tweak_x_scaling( face,
+ family,
+ ppem,
+ style,
+ loader->glyph_index );
/* scale the glyph */
if ( ( loader->load_flags & FT_LOAD_NO_SCALE ) == 0 ||
x_scale_factor != 1000 )