[aat] Rename feat API a bit more
diff --git a/src/hb-aat-layout-feat-table.hh b/src/hb-aat-layout-feat-table.hh index 5bb7183..d30acee 100644 --- a/src/hb-aat-layout-feat-table.hh +++ b/src/hb-aat-layout-feat-table.hh
@@ -131,7 +131,7 @@ SettingName::static_size, SettingName::cmp); - return setting ? setting->get_name_id () : HB_OT_NAME_ID_INVALID; + return setting ? setting->get_name_id () : (hb_ot_name_id_t) HB_OT_NAME_ID_INVALID; } inline bool sanitize (hb_sanitize_context_t *c, const void *base) const @@ -161,9 +161,9 @@ { static const hb_tag_t tableTag = HB_AAT_TAG_feat; - inline unsigned int get_features (unsigned int start_offset, - unsigned int *count, - hb_aat_layout_feature_type_t *features) const + inline unsigned int get_feature_types (unsigned int start_offset, + unsigned int *count, + hb_aat_layout_feature_type_t *features) const { unsigned int feature_count = featureNameCount; if (count && *count)
diff --git a/src/hb-aat-layout.cc b/src/hb-aat-layout.cc index 0ba305a..71bb71a 100644 --- a/src/hb-aat-layout.cc +++ b/src/hb-aat-layout.cc
@@ -301,7 +301,7 @@ } /** - * hb_aat_layout_get_features: + * hb_aat_layout_get_feature_types: * @face: a face object * @start_offset: iteration's start offset * @count: (inout): buffer size as input, filled size as output @@ -312,16 +312,16 @@ * Since: REPLACEME */ unsigned int -hb_aat_layout_get_features (hb_face_t *face, - unsigned int start_offset, - unsigned int *count, /* IN/OUT. May be NULL. */ - hb_aat_layout_feature_type_t *features /* OUT. May be NULL. */) +hb_aat_layout_get_feature_types (hb_face_t *face, + unsigned int start_offset, + unsigned int *count, /* IN/OUT. May be NULL. */ + hb_aat_layout_feature_type_t *features /* OUT. May be NULL. */) { - return face->table.feat->get_features (start_offset, count, features); + return face->table.feat->get_feature_types (start_offset, count, features); } /** - * hb_aat_layout_feature_get_name_id: + * hb_aat_layout_feature_type_get_name_id: * @face: a face object * @feature: feature id * @@ -330,12 +330,12 @@ * Since: REPLACEME */ hb_ot_name_id_t -hb_aat_layout_feature_get_name_id (hb_face_t *face, - hb_aat_layout_feature_type_t feature) +hb_aat_layout_feature_type_get_name_id (hb_face_t *face, + hb_aat_layout_feature_type_t feature) { return face->table.feat->get_feature_name_id (feature); } /** - * hb_aat_layout_feature_get_selectors: + * hb_aat_layout_feature_type_get_selectors: * @face: a face object * @feature: feature id * @default_selector: (out): if is set, the feature is exclusive @@ -357,12 +357,12 @@ * Since: REPLACEME */ unsigned int -hb_aat_layout_feature_get_selectors (hb_face_t *face, - hb_aat_layout_feature_type_t feature, - hb_aat_layout_feature_selector_t *default_selector, /* OUT. May be NULL. */ - unsigned int start_offset, - unsigned int *count, /* IN/OUT. May be NULL. */ - hb_aat_layout_feature_selector_t *selectors /* OUT. May be NULL. */) +hb_aat_layout_feature_type_get_selectors (hb_face_t *face, + hb_aat_layout_feature_type_t feature, + hb_aat_layout_feature_selector_t *default_selector, /* OUT. May be NULL. */ + unsigned int start_offset, + unsigned int *count, /* IN/OUT. May be NULL. */ + hb_aat_layout_feature_selector_t *selectors /* OUT. May be NULL. */) { return face->table.feat->get_selectors (feature, default_selector, start_offset, count, selectors);
diff --git a/src/hb-aat.h b/src/hb-aat.h index 9706470..26dfb5f 100644 --- a/src/hb-aat.h +++ b/src/hb-aat.h
@@ -417,26 +417,26 @@ } hb_aat_layout_feature_selector_t; HB_EXTERN unsigned int -hb_aat_layout_get_features (hb_face_t *face, - unsigned int start_offset, - unsigned int *count, /* IN/OUT. May be NULL. */ - hb_aat_layout_feature_type_t *features /* OUT. May be NULL. */); +hb_aat_layout_get_feature_types (hb_face_t *face, + unsigned int start_offset, + unsigned int *count, /* IN/OUT. May be NULL. */ + hb_aat_layout_feature_type_t *features /* OUT. May be NULL. */); HB_EXTERN hb_ot_name_id_t -hb_aat_layout_feature_get_name_id (hb_face_t *face, - hb_aat_layout_feature_type_t feature); +hb_aat_layout_feature_type_get_name_id (hb_face_t *face, + hb_aat_layout_feature_type_t feature); HB_EXTERN unsigned int -hb_aat_layout_feature_get_selectors (hb_face_t *face, - hb_aat_layout_feature_type_t feature, - hb_aat_layout_feature_selector_t *default_selector, /* OUT. May be NULL. */ - unsigned int start_offset, - unsigned int *count, /* IN/OUT. May be NULL. */ - hb_aat_layout_feature_selector_t *settings /* OUT. May be NULL. */); +hb_aat_layout_feature_type_get_selectors (hb_face_t *face, + hb_aat_layout_feature_type_t feature, + hb_aat_layout_feature_selector_t *default_selector, /* OUT. May be NULL. */ + unsigned int start_offset, + unsigned int *count, /* IN/OUT. May be NULL. */ + hb_aat_layout_feature_selector_t *settings /* OUT. May be NULL. */); HB_EXTERN hb_ot_name_id_t -hb_aat_layout_feature_selector_get_name_id (hb_face_t *face, +hb_aat_layout_feature_selector_get_name_id (hb_face_t *face, hb_aat_layout_feature_type_t feature, hb_aat_layout_feature_selector_t selector);