diff --git a/src/hb-config.hh b/src/hb-config.hh index 5567ddaec..dbe0cb81e 100644 --- a/src/hb-config.hh +++ b/src/hb-config.hh @@ -71,6 +71,7 @@ #define HB_NO_LANGUAGE_PRIVATE_SUBTAG #define HB_NO_LAYOUT_FEATURE_PARAMS #define HB_NO_LAYOUT_COLLECT_GLYPHS +#define HB_NO_LAYOUT_RARELY_UNUSED #define HB_NO_LAYOUT_UNUSED #define HB_NO_MATH #define HB_NO_META diff --git a/src/hb-ot-layout.cc b/src/hb-ot-layout.cc index cbe1b7411..c708cc3f4 100644 --- a/src/hb-ot-layout.cc +++ b/src/hb-ot-layout.cc @@ -2343,6 +2343,7 @@ struct hb_get_glyph_alternates_dispatch_t : ( _dispatch (obj, hb_prioritize, std::forward (ds)...) ) }; +#ifndef HB_NO_LAYOUT_RARELY_UNUSED /** * hb_ot_layout_lookup_get_glyph_alternates: * @face: a face. @@ -2426,6 +2427,7 @@ hb_ot_layout_get_optical_bound (hb_font_t *font, } return ret; } +#endif #endif