| Index: third_party/harfbuzz-ng/src/hb-ot-name-table.hh
|
| diff --git a/third_party/harfbuzz-ng/src/hb-ot-name-table.hh b/third_party/harfbuzz-ng/src/hb-ot-name-table.hh
|
| index 75a1b94ea3121fe545c890a5c5a4fc3f46eb2ea4..07dc0565ca632e342d5c3490e96da26322c4fa9d 100644
|
| --- a/third_party/harfbuzz-ng/src/hb-ot-name-table.hh
|
| +++ b/third_party/harfbuzz-ng/src/hb-ot-name-table.hh
|
| @@ -74,7 +74,7 @@ struct NameRecord
|
|
|
| struct name
|
| {
|
| - static const hb_tag_t Tag = HB_OT_TAG_name;
|
| + static const hb_tag_t tableTag = HB_OT_TAG_name;
|
|
|
| inline unsigned int get_name (unsigned int platform_id,
|
| unsigned int encoding_id,
|
| @@ -98,6 +98,9 @@ struct name
|
| return length;
|
| }
|
|
|
| + inline unsigned int get_size (void) const
|
| + { return min_size + count * nameRecord[0].min_size; }
|
| +
|
| inline bool sanitize_records (hb_sanitize_context_t *c) {
|
| TRACE_SANITIZE (this);
|
| char *string_pool = (char *) this + stringOffset;
|
| @@ -116,7 +119,6 @@ struct name
|
| }
|
|
|
| /* We only implement format 0 for now. */
|
| - protected:
|
| USHORT format; /* Format selector (=0/1). */
|
| USHORT count; /* Number of name records. */
|
| Offset stringOffset; /* Offset to start of string storage (from start of table). */
|
|
|