[truetype/GX] Clean up advance adjustment (Brrr).

* src/truetype/ttgload.c (load_truetype_glyph): Remove remaining code.
This commit is contained in:
Alexei Podtelezhnikov 2022-06-16 16:11:51 +00:00
parent 9079521002
commit 9c706dcca7
1 changed files with 0 additions and 11 deletions

View File

@ -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 );