[GSUB] Use dagger in Ligature::intersects()
This commit is contained in:
parent
b8c642c1f5
commit
5c43a7ba7e
|
@ -661,13 +661,7 @@ struct AlternateSubst
|
||||||
struct Ligature
|
struct Ligature
|
||||||
{
|
{
|
||||||
bool intersects (const hb_set_t *glyphs) const
|
bool intersects (const hb_set_t *glyphs) const
|
||||||
{
|
{ return hb_all (hb_iter (component), glyphs); }
|
||||||
unsigned int count = component.lenP1;
|
|
||||||
for (unsigned int i = 1; i < count; i++)
|
|
||||||
if (!glyphs->has (component[i]))
|
|
||||||
return false;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
void closure (hb_closure_context_t *c) const
|
void closure (hb_closure_context_t *c) const
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue