[truetype] Fix GX variation handling of composites.
* src/truetype/ttgload.c (load_truetype_glyph) [TT_CONFIG_OPTION_GX_VAR_SUPPORT]: Check `ARGS_ARE_XY_VALUES' flag.
This commit is contained in:
parent
97718f3c91
commit
8183eeb18d
|
@ -1,3 +1,10 @@
|
|||
2016-07-16 Behdad Esfahbod <behdad@behdad.org>
|
||||
|
||||
[truetype] Fix GX variation handling of composites.
|
||||
|
||||
* src/truetype/ttgload.c (load_truetype_glyph)
|
||||
[TT_CONFIG_OPTION_GX_VAR_SUPPORT]: Check `ARGS_ARE_XY_VALUES' flag.
|
||||
|
||||
2016-08-05 Alexei Podtelezhnikov <apodtele@gmail.com>
|
||||
|
||||
[smooth] Minor refactoring.
|
||||
|
|
|
@ -1807,11 +1807,11 @@
|
|||
|
||||
for ( i = 0; i < limit; i++, subglyph++ )
|
||||
{
|
||||
/* XXX: overflow check for subglyph->{arg1,arg2}. */
|
||||
/* Deltas must be within signed 16-bit, */
|
||||
/* but the restriction of summed deltas is not clear */
|
||||
subglyph->arg1 = (FT_Int16)points[i].x;
|
||||
subglyph->arg2 = (FT_Int16)points[i].y;
|
||||
if ( subglyph->flags & ARGS_ARE_XY_VALUES )
|
||||
{
|
||||
subglyph->arg1 = (FT_Int16)points[i].x;
|
||||
subglyph->arg2 = (FT_Int16)points[i].y;
|
||||
}
|
||||
}
|
||||
|
||||
loader->pp1.x = points[i + 0].x;
|
||||
|
|
Loading…
Reference in New Issue