Minor
This commit is contained in:
parent
cc65901ca7
commit
6e33a3955d
|
@ -655,10 +655,16 @@ struct Supplier
|
||||||
len = len_;
|
len = len_;
|
||||||
stride = stride_;
|
stride = stride_;
|
||||||
}
|
}
|
||||||
inline Supplier (const hb_vector_t<Type> *v)
|
inline Supplier (hb_array_t<const Type> v)
|
||||||
{
|
{
|
||||||
head = (const Type *) *v;
|
head = v.arrayZ;
|
||||||
len = v->len;
|
len = v.len;
|
||||||
|
stride = sizeof (Type);
|
||||||
|
}
|
||||||
|
inline Supplier (const hb_vector_t<Type> &v)
|
||||||
|
{
|
||||||
|
head = (const Type *) v;
|
||||||
|
len = v.len;
|
||||||
stride = sizeof (Type);
|
stride = sizeof (Type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -495,8 +495,7 @@ struct CmapSubtableLongSegmented
|
||||||
{
|
{
|
||||||
TRACE_SERIALIZE (this);
|
TRACE_SERIALIZE (this);
|
||||||
if (unlikely (!c->extend_min (*this))) return_trace (false);
|
if (unlikely (!c->extend_min (*this))) return_trace (false);
|
||||||
Supplier<CmapSubtableLongGroup> supplier ((const OT::CmapSubtableLongGroup*) group_data,
|
Supplier<CmapSubtableLongGroup> supplier (group_data);
|
||||||
group_data.len);
|
|
||||||
if (unlikely (!groups.serialize (c, supplier, group_data.len))) return_trace (false);
|
if (unlikely (!groups.serialize (c, supplier, group_data.len))) return_trace (false);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -123,8 +123,8 @@ struct SingleSubstFormat1
|
||||||
}
|
}
|
||||||
c->serializer->err (from.in_error () || to.in_error ());
|
c->serializer->err (from.in_error () || to.in_error ());
|
||||||
|
|
||||||
Supplier<GlyphID> from_supplier (&from);
|
Supplier<GlyphID> from_supplier (from);
|
||||||
Supplier<GlyphID> to_supplier (&to);
|
Supplier<GlyphID> to_supplier (to);
|
||||||
SingleSubst_serialize (c->serializer,
|
SingleSubst_serialize (c->serializer,
|
||||||
from_supplier,
|
from_supplier,
|
||||||
to_supplier,
|
to_supplier,
|
||||||
|
@ -229,8 +229,8 @@ struct SingleSubstFormat2
|
||||||
}
|
}
|
||||||
c->serializer->err (from.in_error () || to.in_error ());
|
c->serializer->err (from.in_error () || to.in_error ());
|
||||||
|
|
||||||
Supplier<GlyphID> from_supplier (&from);
|
Supplier<GlyphID> from_supplier (from);
|
||||||
Supplier<GlyphID> to_supplier (&to);
|
Supplier<GlyphID> to_supplier (to);
|
||||||
SingleSubst_serialize (c->serializer,
|
SingleSubst_serialize (c->serializer,
|
||||||
from_supplier,
|
from_supplier,
|
||||||
to_supplier,
|
to_supplier,
|
||||||
|
|
Loading…
Reference in New Issue