Minor, normalize for each calls
This commit is contained in:
parent
22b6c6a5c7
commit
cbc0646a6c
@ -143,10 +143,7 @@ struct glyf
|
|||||||
const hb_subset_plan_t *plan)
|
const hb_subset_plan_t *plan)
|
||||||
{
|
{
|
||||||
TRACE_SERIALIZE (this);
|
TRACE_SERIALIZE (this);
|
||||||
|
for (const auto &_ : it) _.serialize (c, plan);
|
||||||
for (const SubsetGlyph& _ : it)
|
|
||||||
_.serialize (c, plan);
|
|
||||||
|
|
||||||
return_trace (true);
|
return_trace (true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -510,7 +510,7 @@ struct SinglePosFormat1
|
|||||||
if (unlikely (!c->extend_min (*this))) return;
|
if (unlikely (!c->extend_min (*this))) return;
|
||||||
if (unlikely (!c->check_assign (valueFormat, valFormat))) return;
|
if (unlikely (!c->check_assign (valueFormat, valFormat))) return;
|
||||||
|
|
||||||
for (const Value& _ : hb_second (*it))
|
for (const auto &_ : hb_second (*it))
|
||||||
c->copy (_);
|
c->copy (_);
|
||||||
|
|
||||||
auto glyphs =
|
auto glyphs =
|
||||||
@ -598,8 +598,8 @@ struct SinglePosFormat2
|
|||||||
if (unlikely (!c->check_assign (valueFormat, valFormat))) return;
|
if (unlikely (!c->check_assign (valueFormat, valFormat))) return;
|
||||||
if (unlikely (!c->check_assign (valueCount, it.len ()))) return;
|
if (unlikely (!c->check_assign (valueCount, it.len ()))) return;
|
||||||
|
|
||||||
for (auto iter : it)
|
for (const auto &&iter : it)
|
||||||
for (const Value& _ : iter.second)
|
for (const auto &_ : iter.second)
|
||||||
c->copy (_);
|
c->copy (_);
|
||||||
|
|
||||||
auto glyphs =
|
auto glyphs =
|
||||||
@ -665,8 +665,8 @@ struct SinglePos
|
|||||||
{
|
{
|
||||||
hb_array_t<const Value> first_val_iter = hb_second (*glyph_val_iter_pairs);
|
hb_array_t<const Value> first_val_iter = hb_second (*glyph_val_iter_pairs);
|
||||||
|
|
||||||
for (auto iter : glyph_val_iter_pairs)
|
for (const auto &&iter : glyph_val_iter_pairs)
|
||||||
for (const hb_pair_t<Value, Value> _ : hb_zip (iter.second, first_val_iter))
|
for (const auto &&_ : hb_zip (iter.second, first_val_iter))
|
||||||
if (_.first != _.second)
|
if (_.first != _.second)
|
||||||
return 2;
|
return 2;
|
||||||
|
|
||||||
|
@ -191,8 +191,7 @@ struct name
|
|||||||
|
|
||||||
const void *dst_string_pool = &(this + this->stringOffset);
|
const void *dst_string_pool = &(this + this->stringOffset);
|
||||||
|
|
||||||
for (const NameRecord& _ : it)
|
for (const auto &_ : it) c->copy (_, src_string_pool, dst_string_pool);
|
||||||
c->copy (_, src_string_pool, dst_string_pool);
|
|
||||||
|
|
||||||
if (unlikely (c->ran_out_of_room)) return_trace (false);
|
if (unlikely (c->ran_out_of_room)) return_trace (false);
|
||||||
|
|
||||||
|
@ -84,8 +84,7 @@ struct VORG
|
|||||||
this->defaultVertOriginY = defaultVertOriginY;
|
this->defaultVertOriginY = defaultVertOriginY;
|
||||||
this->vertYOrigins.len = it.len ();
|
this->vertYOrigins.len = it.len ();
|
||||||
|
|
||||||
for (const VertOriginMetric _ : it)
|
for (const auto &&_ : it) c->copy (_);
|
||||||
c->copy (_);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool subset (hb_subset_context_t *c) const
|
bool subset (hb_subset_context_t *c) const
|
||||||
|
Loading…
Reference in New Issue
Block a user