minor
move FeatureParamsCharacterVariants::sanitize method right above members
This commit is contained in:
parent
f1488152bd
commit
407bba3e0d
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue