[subset] Use newer iter tools in SinglePosFormat1
This commit is contained in:
parent
9510e918f7
commit
3c81246f66
|
@ -530,15 +530,11 @@ struct SinglePosFormat1
|
||||||
const hb_set_t &glyphset = *c->plan->glyphset_gsub ();
|
const hb_set_t &glyphset = *c->plan->glyphset_gsub ();
|
||||||
const hb_map_t &glyph_map = *c->plan->glyph_map;
|
const hb_map_t &glyph_map = *c->plan->glyph_map;
|
||||||
|
|
||||||
unsigned length = valueFormat.get_len ();
|
|
||||||
|
|
||||||
auto it =
|
auto it =
|
||||||
+ hb_iter (this+coverage)
|
+ hb_iter (this+coverage)
|
||||||
| hb_filter (glyphset)
|
| hb_filter (glyphset)
|
||||||
| hb_map_retains_sorting ([&] (hb_codepoint_t p)
|
| hb_map_retains_sorting (glyph_map)
|
||||||
{
|
| hb_zip (hb_repeat (values.as_array (valueFormat.get_len ())))
|
||||||
return hb_pair (glyph_map[p], values.as_array (length));
|
|
||||||
})
|
|
||||||
;
|
;
|
||||||
|
|
||||||
bool ret = bool (it);
|
bool ret = bool (it);
|
||||||
|
|
Loading…
Reference in New Issue