* src/truetype/ttgload.c (TT_Process_Simple_Glyph): Improve accuracy.

This commit is contained in:
Ben Wagner 2019-05-26 09:37:41 -04:00 committed by Alexei Podtelezhnikov
parent e55f969869
commit 86d997e5b1
2 changed files with 6 additions and 5 deletions

View File

@ -1,3 +1,7 @@
2019-05-26 Ben Wagner <bungeman@google.com>
* src/truetype/ttgload.c (TT_Process_Simple_Glyph): Improve accuracy.
2019-05-23 Werner Lemberg <wl@gnu.org>
[truetype] Draw glyphs without deltas in variation font (#56374).

View File

@ -1083,14 +1083,11 @@
{
FT_Vector* u = unrounded;
FT_Fixed xs = x_scale >> 6;
FT_Fixed ys = y_scale >> 6;
for ( ; vec < limit; vec++, u++ )
{
vec->x = FT_MulFix( u->x, xs );
vec->y = FT_MulFix( u->y, ys );
vec->x = ( FT_MulFix( u->x, x_scale ) + 32 ) >> 6;
vec->y = ( FT_MulFix( u->y, y_scale ) + 32 ) >> 6;
}
}
else