From 9c706dcca71607c9b88fd241eab89320914c78b0 Mon Sep 17 00:00:00 2001 From: Alexei Podtelezhnikov Date: Thu, 16 Jun 2022 16:11:51 +0000 Subject: [PATCH] [truetype/GX] Clean up advance adjustment (Brrr). * src/truetype/ttgload.c (load_truetype_glyph): Remove remaining code. --- src/truetype/ttgload.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/truetype/ttgload.c b/src/truetype/ttgload.c index 52f21367b..e4b4fe526 100644 --- a/src/truetype/ttgload.c +++ b/src/truetype/ttgload.c @@ -2018,17 +2018,6 @@ loader->pp4.x = points[i + 3].x; loader->pp4.y = points[i + 3].y; - /* recalculate linear horizontal and vertical advances */ - /* if we don't have HVAR and VVAR, respectively */ - if ( !( face->variation_support & TT_FACE_FLAG_VAR_HADVANCE ) ) - loader->linear = - FT_PIX_ROUND( unrounded[outline.n_points - 3].x - - unrounded[outline.n_points - 4].x ) / 64; - if ( !( face->variation_support & TT_FACE_FLAG_VAR_VADVANCE ) ) - loader->vadvance = - FT_PIX_ROUND( unrounded[outline.n_points - 1].x - - unrounded[outline.n_points - 2].x ) / 64; - Exit1: FT_FREE( outline.points ); FT_FREE( outline.tags );