ref: 86d997e5b1c401db06114b51d44d1bef6c7fe994
parent: e55f969869f4afa55259058c8ea78199abf24a59
author: Ben Wagner <bungeman@google.com>
date: Sun May 26 05:37:41 EDT 2019
* src/truetype/ttgload.c (TT_Process_Simple_Glyph): Improve accuracy.
--- a/ChangeLog
+++ b/ChangeLog
@@ -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).
--- a/src/truetype/ttgload.c
+++ b/src/truetype/ttgload.c
@@ -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