summaryrefslogtreecommitdiff
path: root/src/hb-ot-maxp-table.hh
diff options
context:
space:
mode:
authorGarret Rieger <grieger@google.com>2018-02-12 11:22:32 -0800
committerGarret Rieger <grieger@google.com>2018-02-12 11:22:50 -0800
commit83e1ef92156d8688b96d14957efcdf7601768799 (patch)
tree033768b19788ee9faf656bd54792b0f884766f3b /src/hb-ot-maxp-table.hh
parent427f9e4b90bfadb8af13cbd27b7c3ee0153ca8b1 (diff)
[subset] Set the new number of glyphs in maxp.
Diffstat (limited to 'src/hb-ot-maxp-table.hh')
-rw-r--r--src/hb-ot-maxp-table.hh5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/hb-ot-maxp-table.hh b/src/hb-ot-maxp-table.hh
index 54b4f11c..fb2209c4 100644
--- a/src/hb-ot-maxp-table.hh
+++ b/src/hb-ot-maxp-table.hh
@@ -48,6 +48,11 @@ struct maxp
return numGlyphs;
}
+ inline void set_num_glyphs (uint16_t count)
+ {
+ numGlyphs.set (count);
+ }
+
inline bool sanitize (hb_sanitize_context_t *c) const
{
TRACE_SANITIZE (this);