[sfnt] Retrieve affine matrix from offset in 'COLR' v1 parsing.

* src/sfnt/ttcolr.c (read_paint): Implement spec change where
affine transform matrix is now referenced by offset instead of
being placed inline in the PaintTransform table.
This commit is contained in:
Dominik Röttsches 2021-07-26 17:32:09 +03:00 committed by Werner Lemberg
parent 66189807b8
commit 5c0ac7a435
1 changed files with 5 additions and 0 deletions

View File

@ -551,6 +551,11 @@
apaint->u.transform.paint.p = child_table_p;
apaint->u.transform.paint.insert_root_transform = 0;
if ( !get_child_table_pointer( colr, paint_base, &p, &child_table_p ) )
return 0;
p = child_table_p;
apaint->u.transform.affine.xx = FT_NEXT_LONG( p );
apaint->u.transform.affine.yx = FT_NEXT_LONG( p );
apaint->u.transform.affine.xy = FT_NEXT_LONG( p );