[layout] Comment

This commit is contained in:
Behdad Esfahbod 2022-11-16 17:58:59 -07:00
parent 2268207c19
commit 561946c7d5
1 changed files with 4 additions and 0 deletions

View File

@ -1965,6 +1965,10 @@ inline void hb_ot_map_t::apply (const Proxy &proxy,
unsigned int lookup_index = lookup.index; unsigned int lookup_index = lookup.index;
if (!buffer->message (font, "start lookup %d", lookup_index)) continue; if (!buffer->message (font, "start lookup %d", lookup_index)) continue;
/* c.digest is a digest of all the current glyphs in the buffer
* (plus some past glyphs).
*
* Only try applying the lookup if there is any overlap. */
if (proxy.accels[lookup_index].digest.may_have (c.digest)) if (proxy.accels[lookup_index].digest.may_have (c.digest))
{ {
c.set_lookup_index (lookup_index); c.set_lookup_index (lookup_index);