Add `FT_Glyph` support for OT-SVG glyphs

System Internals / FreeType - Moazin Khatti [gmail.com] - 20 January 2022 16:45 UTC

- include/freetype/ftglyph.h (FT_SvgGlyphRec, FT_SvgGlyph): New structure.

- src/base/ftglyph.c: Include `otsvg.h`. (ft_svg_glyph_init, ft_svg_glyph_done, ft_svg_glyph_copy, ft_svg_glyph_transform, ft_svg_glyph_prepare): New function. (ft_svg_glyph_class): New class. (FT_New_Glyph, FT_Glyph_To_Bitmap): Updated to handle OT-SVG glyphs.
- src/base/ftglyph.h: Updated.

97c09a803 Add `FT_Glyph` support for OT-SVG glyphs.
include/freetype/ftglyph.h | 90 +++++++++++++++-
src/base/ftbase.h | 1 +
src/base/ftglyph.c | 251 +++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 340 insertions(+), 2 deletions(-)

Upstream: git.savannah.gnu.org


  • Share