diff options
Diffstat (limited to 'src/libnrtype')
| -rw-r--r-- | src/libnrtype/OpenTypeUtil.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libnrtype/OpenTypeUtil.cpp b/src/libnrtype/OpenTypeUtil.cpp index ffe0807b0..1398a4857 100644 --- a/src/libnrtype/OpenTypeUtil.cpp +++ b/src/libnrtype/OpenTypeUtil.cpp @@ -39,6 +39,10 @@ Glib::ustring extract_tag( guint32 *tag ) { } +// TODO: Ideally, we should use the HB_VERSION_ATLEAST macro here, +// but this was only released in harfbuzz >= 0.9.30 +// #if HB_VERSION_ATLEAST(1,2,3) +#if HB_VERSION_MAJOR*10000 + HB_VERSION_MINOR*100 + HB_VERSION_MICRO >= 10203 void get_glyphs( hb_font_t* font, hb_set_t* set, Glib::ustring& characters) { // There is a unicode to glyph mapping function but not the inverse! @@ -54,6 +58,7 @@ void get_glyphs( hb_font_t* font, hb_set_t* set, Glib::ustring& characters) { } } } +#endif // Make a list of all tables found in the GSUB // This list includes all tables regardless of script or language. |
