summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2018-10-15 21:34:10 -0700
committerBehdad Esfahbod <behdad@behdad.org>2018-10-15 21:34:10 -0700
commit0bce6820ab938432b59b9dddc0484772fe8ef359 (patch)
treed743e2bd9356e5c058b900deb2f28cd27197f6d5
parent11703afce6cebbb4c5e7cdea59ca59a1787608b8 (diff)
[name] Add public API declarations
-rw-r--r--src/hb-ot-name.h34
1 files changed, 34 insertions, 0 deletions
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 */