diff options
author | Alexei Podtelezhnikov <apodtele@gmail.com> | 2022-06-16 22:13:25 -0400 |
---|---|---|
committer | Alexei Podtelezhnikov <apodtele@gmail.com> | 2022-06-16 22:13:25 -0400 |
commit | d9b8a69e9a8ba5ac999e721d50c231fe2e01d0bd (patch) | |
tree | 5e7440f92d5b3516cd569a0b80d2998be0dbf100 | |
parent | 9c706dcca71607c9b88fd241eab89320914c78b0 (diff) | |
download | freetype2-d9b8a69e9a8ba5ac999e721d50c231fe2e01d0bd.tar.gz |
[truetype/GX] Fix an old typo.
* src/truetype/ttgxvar.c (TT_Vary_Apply_Glyph_Deltas): Vertical
advance is measured along y-coordinate.
-rw-r--r-- | src/truetype/ttgxvar.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/truetype/ttgxvar.c b/src/truetype/ttgxvar.c index 232bdb459..e81f3faeb 100644 --- a/src/truetype/ttgxvar.c +++ b/src/truetype/ttgxvar.c @@ -4259,8 +4259,8 @@ loader->linear = FT_PIX_ROUND( unrounded[n_points - 3].x - unrounded[n_points - 4].x ) / 64; if ( !( face->variation_support & TT_FACE_FLAG_VAR_VADVANCE ) ) - loader->vadvance = FT_PIX_ROUND( unrounded[n_points - 1].x - - unrounded[n_points - 2].x ) / 64; + loader->vadvance = FT_PIX_ROUND( unrounded[n_points - 1].y - + unrounded[n_points - 2].y ) / 64; Fail3: FT_FREE( point_deltas_x ); |