diff options
author | Alexei Podtelezhnikov <apodtele@gmail.com> | 2022-06-16 16:11:51 +0000 |
---|---|---|
committer | Alexei Podtelezhnikov <apodtele@gmail.com> | 2022-06-16 16:11:51 +0000 |
commit | 9c706dcca71607c9b88fd241eab89320914c78b0 (patch) | |
tree | 0f89a92665d6d543570113ea74a4126461d0a8d0 | |
parent | 9079521002231862d5202ff7ec8d628e27972673 (diff) | |
download | freetype2-9c706dcca71607c9b88fd241eab89320914c78b0.tar.gz |
[truetype/GX] Clean up advance adjustment (Brrr).
* src/truetype/ttgload.c (load_truetype_glyph): Remove remaining code.
-rw-r--r-- | src/truetype/ttgload.c | 11 |
1 files changed, 0 insertions, 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 ); |