Add table index to lookup messages

We could say GSUB/GPOS explicitly, but using the index is more general, in case future tables (such as JSTF, Silf) become supported.
This commit is contained in:
Simon Cozens 2020-03-30 16:06:30 +01:00
parent 2cea796b75
commit 42aac64030

View File

@ -1954,7 +1954,7 @@ inline void hb_ot_map_t::apply (const Proxy &proxy,
for (; i < stage->last_lookup; i++)
{
unsigned int lookup_index = lookups[table_index][i].index;
if (!buffer->message (font, "start lookup %d", lookup_index)) continue;
if (!buffer->message (font, "start lookup %d:%d", table_index, lookup_index)) continue;
c.set_lookup_index (lookup_index);
c.set_lookup_mask (lookups[table_index][i].mask);
c.set_auto_zwj (lookups[table_index][i].auto_zwj);
@ -1967,7 +1967,7 @@ inline void hb_ot_map_t::apply (const Proxy &proxy,
apply_string<Proxy> (&c,
proxy.table.get_lookup (lookup_index),
proxy.accels[lookup_index]);
(void) buffer->message (font, "end lookup %d", lookup_index);
(void) buffer->message (font, "end lookup %d:%d", table_index, lookup_index);
}
if (stage->pause_func)