提交 bcab098c 编写于 作者: B Behdad Esfahbod

[iter] Port more code to daggers

上级 4c75158e
...@@ -842,12 +842,14 @@ struct LigatureSubstFormat1 ...@@ -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_filter (*glyphs, hb_first) + hb_zip (this+coverage, ligatureSet)
| hb_map (hb_second); it; ++it) | hb_filter (*glyphs, hb_first)
if ((this+*it).intersects (glyphs)) | hb_map (hb_second)
return true; | hb_map ([&] (const OffsetTo<LigatureSet> &_) -> bool
return false; { return (this+_).intersects (glyphs); })
| hb_any
;
} }
void closure (hb_closure_context_t *c) const void closure (hb_closure_context_t *c) const
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册