[cmap] Move code around
This commit is contained in:
parent
758c9d68e2
commit
e4a4555d1e
@ -863,14 +863,6 @@ struct cmap
|
||||
hb_vector_t<CmapSubtableLongGroup> format12_groups;
|
||||
};
|
||||
|
||||
inline bool sanitize (hb_sanitize_context_t *c) const
|
||||
{
|
||||
TRACE_SANITIZE (this);
|
||||
return_trace (c->check_struct (this) &&
|
||||
likely (version == 0) &&
|
||||
encodingRecord.sanitize (c, this));
|
||||
}
|
||||
|
||||
inline bool _create_plan (const hb_subset_plan_t *plan,
|
||||
subset_plan *cmap_plan) const
|
||||
{
|
||||
@ -1171,6 +1163,16 @@ struct cmap
|
||||
return &(this+encodingRecord[result].subtable);
|
||||
}
|
||||
|
||||
public:
|
||||
|
||||
inline bool sanitize (hb_sanitize_context_t *c) const
|
||||
{
|
||||
TRACE_SANITIZE (this);
|
||||
return_trace (c->check_struct (this) &&
|
||||
likely (version == 0) &&
|
||||
encodingRecord.sanitize (c, this));
|
||||
}
|
||||
|
||||
protected:
|
||||
HBUINT16 version; /* Table version number (0). */
|
||||
SortedArrayOf<EncodingRecord>
|
||||
|
Loading…
Reference in New Issue
Block a user