From 90420ed8cb297f1ceff75f5a75c8fa7b6ea6f65e Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 15 Oct 2018 22:48:48 -0700 Subject: [PATCH] [name] Implement hb_ot_name_get_names() --- src/Makefile.sources | 1 + src/hb-ot-name-table.hh | 3 +-- src/hb-ot-name.h | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Makefile.sources b/src/Makefile.sources index e13bd4f09..0ee79a479 100644 --- a/src/Makefile.sources +++ b/src/Makefile.sources @@ -34,6 +34,7 @@ HB_BASE_sources = \ hb-ot-kern-table.hh \ hb-ot-maxp-table.hh \ hb-ot-name-table.hh \ + hb-ot-name.cc \ hb-ot-os2-table.hh \ hb-ot-os2-unicode-ranges.hh \ hb-ot-post-macroman.hh \ diff --git a/src/hb-ot-name-table.hh b/src/hb-ot-name-table.hh index a6a1e5f30..5625ab2c0 100644 --- a/src/hb-ot-name-table.hh +++ b/src/hb-ot-name-table.hh @@ -217,9 +217,8 @@ struct name private: hb_blob_t *blob; + public: hb_vector_t names; - - unsigned int names_count; }; /* We only implement format 0 for now. */ diff --git a/src/hb-ot-name.h b/src/hb-ot-name.h index 257b346de..4c0db0fcb 100644 --- a/src/hb-ot-name.h +++ b/src/hb-ot-name.h @@ -82,8 +82,8 @@ typedef struct hb_ot_name_entry_t } 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_ot_name_get_names (hb_face_t *face, + const hb_ot_name_entry_t **entries /* OUT */); HB_END_DECLS