[subset] Optimize ClassDef1::intersected_class_glyphs() for class0
This commit is contained in:
parent
c78d8ba60b
commit
3261e05bdb
|
@ -2057,10 +2057,13 @@ struct ClassDefFormat1
|
||||||
unsigned count = classValue.len;
|
unsigned count = classValue.len;
|
||||||
if (klass == 0)
|
if (klass == 0)
|
||||||
{
|
{
|
||||||
hb_codepoint_t endGlyph = startGlyph + count -1;
|
for (unsigned g = HB_SET_VALUE_INVALID;
|
||||||
for (hb_codepoint_t g : glyphs->iter ())
|
hb_set_next (glyphs, &g) && g < startGlyph;)
|
||||||
if (g < startGlyph || g > endGlyph)
|
intersect_glyphs->add (g);
|
||||||
intersect_glyphs->add (g);
|
|
||||||
|
for (unsigned g = startGlyph + count - 1;
|
||||||
|
hb_set_next (glyphs, &g);)
|
||||||
|
intersect_glyphs->add (g);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue