#define HB_NO_COLOR
#define HB_NO_GETENV
#define HB_NO_MATH
-#define HB_NO_NAME_TABLE_AAT
+#define HB_NO_OT_NAME_LANGUAGE
#define HB_NO_OT_LAYOUT_UNUSED
#endif
#endif
#ifdef HB_NO_AAT
-#define HB_NO_NAME_TABLE_AAT
+#define HB_NO_OT_NAME_LANGUAGE_AAT
#define HB_NO_SHAPE_AAT
#endif
const hb_ot_language_map_t *array,
unsigned int len)
{
+#ifdef HB_NO_OT_NAME_LANGUAGE
+ return HB_LANGUAGE_INVALID;
+#endif
const hb_ot_language_map_t *entry = (const hb_ot_language_map_t *)
hb_bsearch (&code,
array,
{
hb_language_t language (hb_face_t *face) const
{
+#ifndef HB_NO_OT_NAME_LANGUAGE
unsigned int p = platformID;
unsigned int l = languageID;
if (p == 1)
return _hb_ot_name_language_for_mac_code (l);
-#ifndef HB_NO_NAME_TABLE_AAT
+#ifndef HB_NO_OT_NAME_LANGUAGE_AAT
if (p == 0)
return _hb_aat_language_get (face, l);
#endif
+#endif
return HB_LANGUAGE_INVALID;
}