From 0bce6820ab938432b59b9dddc0484772fe8ef359 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 15 Oct 2018 21:34:10 -0700 Subject: [name] Add public API declarations --- src/hb-ot-name.h | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/src/hb-ot-name.h b/src/hb-ot-name.h index 0fdd63bb..8e777f18 100644 --- a/src/hb-ot-name.h +++ b/src/hb-ot-name.h @@ -48,6 +48,40 @@ typedef unsigned int hb_name_id_t; **/ #define HB_NAME_ID_INVALID 0xFFFF + +HB_EXTERN hb_bool_t +hb_ot_name_get_utf8 (hb_face_t *face, + hb_name_id_t name_id, + hb_language_t language, + unsigned int *text_size /* IN/OUT */, + char *text /* OUT */); + +HB_EXTERN hb_bool_t +hb_ot_name_get_utf16 (hb_face_t *face, + hb_name_id_t name_id, + hb_language_t language, + unsigned int *text_size /* IN/OUT */, + uint16_t *text /* OUT */); + +HB_EXTERN hb_bool_t +hb_ot_name_get_utf32 (hb_face_t *face, + hb_name_id_t name_id, + hb_language_t language, + unsigned int *text_size /* IN/OUT */, + uint32_t *text /* OUT */); + + +typedef struct hb_ot_name_entry_t +{ + hb_name_id_t name_id; + hb_language_t language; +} hb_ot_name_entry_t; + +HB_EXTERN unsigned int +hb_ot_name_get_names (hb_face_t *face, + hb_ot_name_entry_t **entries /* OUT */); + + HB_END_DECLS #endif /* HB_OT_NAME_H */ -- cgit v1.2.3