* include/freetype/freetype.h: Add `FT_FACE_FLAG_SVG' to indicate the presence of an SVG table in the face. * src/base/ftobjs.c (ft_glyphslot_init): Allocate memory for `FT_SVG_Document' in `slot->other' if an SVG table exists in the face. (ft_glyphslot_clear): Clear `slot->other' only if the font doesn't have an SVG table. (ft_glyphslot_done): Free the memory at `slot->other' if the face has an SVG table. * src/base/ttsvg.c (tt_face_load_svg): Set `FT_FACE_FLAG_SVG'. (tt_face_load_svg_doc): Don't allocate the memory.hooks-via-module-property
parent
aec7ec2a62
commit
72eb3b3a9d
3 changed files with 24 additions and 5 deletions
Loading…
Reference in new issue