From 42aac64030c54e514c4c031b49f646ece2b878fa Mon Sep 17 00:00:00 2001 From: Simon Cozens Date: Mon, 30 Mar 2020 16:06:30 +0100 Subject: [PATCH] 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. --- src/hb-ot-layout.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hb-ot-layout.cc b/src/hb-ot-layout.cc index 58ec8ed95..639d94513 100644 --- a/src/hb-ot-layout.cc +++ b/src/hb-ot-layout.cc @@ -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 (&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)