[subset] Use newer iter tools in SinglePosFormat1

This commit is contained in:
Behdad Esfahbod 2019-09-01 19:25:50 -05:00
parent 9510e918f7
commit 3c81246f66
1 changed files with 2 additions and 6 deletions

View File

@ -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);