[layout] Add HB_NO_LAYOUT_RARELY_USED

This commit is contained in:
Behdad Esfahbod 2022-09-01 13:40:53 -06:00
parent 8e88653f05
commit 3892128a1f
2 changed files with 3 additions and 0 deletions

View File

@ -71,6 +71,7 @@
#define HB_NO_LANGUAGE_PRIVATE_SUBTAG #define HB_NO_LANGUAGE_PRIVATE_SUBTAG
#define HB_NO_LAYOUT_FEATURE_PARAMS #define HB_NO_LAYOUT_FEATURE_PARAMS
#define HB_NO_LAYOUT_COLLECT_GLYPHS #define HB_NO_LAYOUT_COLLECT_GLYPHS
#define HB_NO_LAYOUT_RARELY_UNUSED
#define HB_NO_LAYOUT_UNUSED #define HB_NO_LAYOUT_UNUSED
#define HB_NO_MATH #define HB_NO_MATH
#define HB_NO_META #define HB_NO_META

View File

@ -2343,6 +2343,7 @@ struct hb_get_glyph_alternates_dispatch_t :
( _dispatch (obj, hb_prioritize, std::forward<Ts> (ds)...) ) ( _dispatch (obj, hb_prioritize, std::forward<Ts> (ds)...) )
}; };
#ifndef HB_NO_LAYOUT_RARELY_UNUSED
/** /**
* hb_ot_layout_lookup_get_glyph_alternates: * hb_ot_layout_lookup_get_glyph_alternates:
* @face: a face. * @face: a face.
@ -2426,6 +2427,7 @@ hb_ot_layout_get_optical_bound (hb_font_t *font,
} }
return ret; return ret;
} }
#endif
#endif #endif