move FeatureParamsCharacterVariants::sanitize method right above members
This commit is contained in:
Ebrahim Byagowi 2020-06-19 23:12:42 +04:30
parent f1488152bd
commit 407bba3e0d
1 changed files with 7 additions and 7 deletions

View File

@ -805,13 +805,6 @@ struct FeatureParamsStylisticSet
/* https://docs.microsoft.com/en-us/typography/opentype/spec/features_ae#cv01-cv99 */
struct FeatureParamsCharacterVariants
{
bool sanitize (hb_sanitize_context_t *c) const
{
TRACE_SANITIZE (this);
return_trace (c->check_struct (this) &&
characters.sanitize (c));
}
unsigned get_size () const
{ return min_size + characters.len * HBUINT24::static_size; }
@ -821,6 +814,13 @@ struct FeatureParamsCharacterVariants
return_trace ((bool) c->serializer->embed (*this));
}
bool sanitize (hb_sanitize_context_t *c) const
{
TRACE_SANITIZE (this);
return_trace (c->check_struct (this) &&
characters.sanitize (c));
}
HBUINT16 format; /* Format number is set to 0. */
NameID featUILableNameID; /* The name table name ID that
* specifies a string (or strings,