* src/truetype/ttgload.c (TT_Process_Simple_Glyph): Improve accuracy.
This commit is contained in:
parent
e55f969869
commit
86d997e5b1
|
@ -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).
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue