* src/truetype/ttgload.c (load_truetype_glyph): Init `unrounded'.

This fixes linear advance width values for spacing glyphs.  Bug
introduced 2019-05-09.
This commit is contained in:
Werner Lemberg 2019-05-16 10:15:53 +02:00
parent 535b687e58
commit ac335cd586
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2019-05-16 Werner Lemberg <wl@gnu.org>
* src/truetype/ttgload.c (load_truetype_glyph): Init `unrounded'.
This fixes linear advance width values for spacing glyphs. Bug
introduced 2019-05-09.
2019-05-16 Werner Lemberg <wl@gnu.org>
[truetype] Avoid code duplication.

View File

@ -1739,7 +1739,7 @@
FT_Outline outline;
/* unrounded values */
FT_Vector unrounded[4];
FT_Vector unrounded[4] = { {0, 0}, {0, 0}, {0, 0}, {0, 0} };
points[0].x = loader->pp1.x;