[iter] Port more code to daggers

This commit is contained in:
Behdad Esfahbod 2019-03-29 21:49:18 -07:00
parent 4c75158e18
commit bcab098c8f
1 changed files with 8 additions and 6 deletions

View File

@ -842,12 +842,14 @@ struct LigatureSubstFormat1
{ {
bool intersects (const hb_set_t *glyphs) const bool intersects (const hb_set_t *glyphs) const
{ {
for (auto it = hb_zip (this+coverage, ligatureSet) return
+ hb_zip (this+coverage, ligatureSet)
| hb_filter (*glyphs, hb_first) | hb_filter (*glyphs, hb_first)
| hb_map (hb_second); it; ++it) | hb_map (hb_second)
if ((this+*it).intersects (glyphs)) | hb_map ([&] (const OffsetTo<LigatureSet> &_) -> bool
return true; { return (this+_).intersects (glyphs); })
return false; | hb_any
;
} }
void closure (hb_closure_context_t *c) const void closure (hb_closure_context_t *c) const