[subset] Use dagger
Better fix for https://github.com/harfbuzz/harfbuzz/pull/2858
This commit is contained in:
parent
d8ea552d10
commit
103ed7da83
|
@ -2061,20 +2061,14 @@ struct LigatureArray : OffsetListOf<LigatureAttach>
|
||||||
auto *out = c->serializer->start_embed (this);
|
auto *out = c->serializer->start_embed (this);
|
||||||
if (unlikely (!c->serializer->extend_min (out))) return_trace (false);
|
if (unlikely (!c->serializer->extend_min (out))) return_trace (false);
|
||||||
|
|
||||||
unsigned ligature_count = 0;
|
for (const auto _ : + hb_zip (coverage, *this)
|
||||||
for (hb_codepoint_t gid : coverage)
|
| hb_filter (glyphset, hb_first))
|
||||||
{
|
{
|
||||||
if (ligature_count >= this->len)
|
|
||||||
break;
|
|
||||||
|
|
||||||
ligature_count++;
|
|
||||||
if (!glyphset.has (gid)) continue;
|
|
||||||
|
|
||||||
auto *matrix = out->serialize_append (c->serializer);
|
auto *matrix = out->serialize_append (c->serializer);
|
||||||
if (unlikely (!matrix)) return_trace (false);
|
if (unlikely (!matrix)) return_trace (false);
|
||||||
|
|
||||||
matrix->serialize_subset (c,
|
matrix->serialize_subset (c,
|
||||||
this->arrayZ[ligature_count - 1],
|
_.second,
|
||||||
this,
|
this,
|
||||||
class_count,
|
class_count,
|
||||||
klass_mapping);
|
klass_mapping);
|
||||||
|
|
Loading…
Reference in New Issue