From d63f16a48bc41cca9afd6240e1e51cb77c389639 Mon Sep 17 00:00:00 2001 From: Tavmjong Bah Date: Tue, 7 May 2019 09:38:37 +0200 Subject: Add some documentation (Harfbuzz, OpenType SVG). --- src/libnrtype/OpenTypeUtil.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/libnrtype') diff --git a/src/libnrtype/OpenTypeUtil.cpp b/src/libnrtype/OpenTypeUtil.cpp index 0662c339b..5e5e439bd 100644 --- a/src/libnrtype/OpenTypeUtil.cpp +++ b/src/libnrtype/OpenTypeUtil.cpp @@ -254,6 +254,7 @@ void readOpenTypeGsubTable (const FT_Face ft_face, hb_face_destroy (hb_face); } +// Harfbuzz now as API for variations (Version 2.2, Nov 29 2018). // Make a list of all Variation axes with ranges. void readOpenTypeFvarAxes(const FT_Face ft_face, std::map& axes) { @@ -289,6 +290,7 @@ void readOpenTypeFvarAxes(const FT_Face ft_face, } +// Harfbuzz now as API for named variations (Version 2.2, Nov 29 2018). // Make a list of all Named instances with axis values. void readOpenTypeFvarNamed(const FT_Face ft_face, std::map& named) { @@ -330,7 +332,7 @@ void readOpenTypeFvarNamed(const FT_Face ft_face, void readOpenTypeSVGTable(const FT_Face ft_face, std::map& glyphs) { - // Harfbuzz has some support for SVG fonts but it is not yet exposed to user. + // Harfbuzz has some support for SVG fonts but it is not exposed until version 2.1 (Oct 30, 2018). // We do it the hard way! hb_face_t *hb_face = hb_ft_face_create_cached (ft_face); hb_blob_t *hb_blob = hb_face_reference_table (hb_face, HB_OT_TAG_SVG); -- cgit v1.2.3