mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-28 00:59:16 +01:00
[iter] Port more code to daggers
This commit is contained in:
1 parent
4c75158e18
commit
bcab098c8f
1 file changed
+8
-6
@@ -842,12 +842,14 @@ struct LigatureSubstFormat1
|
||||
{
|
||||
bool intersects (const hb_set_t *glyphs) const
|
||||
{
|
||||
for (auto it = hb_zip (this+coverage, ligatureSet)
|
||||
| hb_filter (*glyphs, hb_first)
|
||||
| hb_map (hb_second); it; ++it)
|
||||
if ((this+*it).intersects (glyphs))
|
||||
return true;
|
||||
return false;
|
||||
return
|
||||
+ hb_zip (this+coverage, ligatureSet)
|
||||
| hb_filter (*glyphs, hb_first)
|
||||
| hb_map (hb_second)
|
||||
| hb_map ([&] (const OffsetTo<LigatureSet> &_) -> bool
|
||||
{ return (this+_).intersects (glyphs); })
|
||||
| hb_any
|
||||
;
|
||||
}
|
||||
|
||||
void closure (hb_closure_context_t *c) const
|
||||
|
||||
Reference in new issue
Block a user