Skip to content

[sfnt] Provide optional root transform for COLRv1 glyph graph

Dominik Röttsches requested to merge drott/freetype:topLevelTransform into master
  • include/freetype/freetype.h (FT_Get_Color_Glyph_Paint): Additional function argument root_transform to control whether root transform should be returned. (FT_OpaquePaint): Additional tracking field to denote whether root transform is to be returned.
  • include/freetype/internal/sfnt.h (TT_Get_Color_Glyph_Paint_Func): Propagate additional argument.
  • src/base/ftobjs.c (FT_Get_Color_Glyph_Paint): Ditto.
  • src/sfnt/ttcolr.c (tt_face_get_colr_glyph_paint): Return root transform reflecting the size and tranform configured on FT_Face. (read_paint): Initialize and track status of insert_root_transform flag.

Merge request reports