From ff66e912d0901fbaa69b0e5be0d132aa58c6147f Mon Sep 17 00:00:00 2001 From: Alexei Podtelezhnikov Date: Thu, 29 Sep 2022 17:46:23 +0000 Subject: [PATCH] * src/sfnt/ttsbit.c (tt_face_load_strike_metrics): Use lighter FT_DivFix. --- src/sfnt/ttsbit.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/sfnt/ttsbit.c b/src/sfnt/ttsbit.c index bf73d04e5..832e8f575 100644 --- a/src/sfnt/ttsbit.c +++ b/src/sfnt/ttsbit.c @@ -385,11 +385,9 @@ /* set the scale values (in 16.16 units) so advances */ /* from the hmtx and vmtx table are scaled correctly */ - metrics->x_scale = FT_MulDiv( metrics->x_ppem, - 64 * 0x10000, + metrics->x_scale = FT_DivFix( metrics->x_ppem * 64, face->header.Units_Per_EM ); - metrics->y_scale = FT_MulDiv( metrics->y_ppem, - 64 * 0x10000, + metrics->y_scale = FT_DivFix( metrics->y_ppem * 64, face->header.Units_Per_EM ); return FT_Err_Ok;