[truetype] Correctly reset point tags for glyph components.

Problem reported by Nigel Tao <nigeltao@golang.org>.

* src/truetype/ttgload.c (TT_Process_Composite_Glyph): Fix loop.
This commit is contained in:
Werner Lemberg 2013-11-05 13:29:15 +01:00
parent e4db812790
commit c606428693
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2013-11-05 Werner Lemberg <wl@gnu.org>
[truetype] Correctly reset point tags for glyph components.
Problem reported by Nigel Tao <nigeltao@golang.org>.
* src/truetype/ttgload.c (TT_Process_Composite_Glyph): Fix loop.
2013-11-02 Werner Lemberg <wl@gnu.org>
[truetype] Fix GETINFO opcode handling of subpixel hinting bits.

View File

@ -1254,7 +1254,7 @@
/* Some points are likely touched during execution of */
/* instructions on components. So let's untouch them. */
for ( i = start_point; i < loader->zone.n_points; i++ )
for ( i = 0; i < loader->zone.n_points; i++ )
loader->zone.tags[i] &= ~FT_CURVE_TAG_TOUCH_BOTH;
loader->zone.n_points += 4;