From 5ed816ab5900ac4ff7feca3d98cbd92e62fd1754 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 7 Nov 2018 09:13:51 -0500 Subject: [PATCH] [post] Minor --- src/hb-ot-post-table.hh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/hb-ot-post-table.hh b/src/hb-ot-post-table.hh index 1772a10c1..00bd1bcb9 100644 --- a/src/hb-ot-post-table.hh +++ b/src/hb-ot-post-table.hh @@ -49,12 +49,15 @@ namespace OT { struct postV2Tail { + friend struct post; + inline bool sanitize (hb_sanitize_context_t *c) const { TRACE_SANITIZE (this); return_trace (glyphNameIndex.sanitize (c)); } + protected: ArrayOf glyphNameIndex; /* This is not an offset, but is the * ordinal number of the glyph in 'post' * string tables. */ @@ -62,6 +65,7 @@ struct postV2Tail namesX; /* Glyph names with length bytes [variable] * (a Pascal string). */ + public: DEFINE_SIZE_ARRAY2 (2, glyphNameIndex, namesX); };