From 449c7f2a0d2db2a5533f2e44c00fec64ec4e012c Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 4 Feb 2025 17:56:22 +0000 Subject: [PATCH] [aat] Add some tracing --- src/hb-aat-layout-morx-table.hh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/hb-aat-layout-morx-table.hh b/src/hb-aat-layout-morx-table.hh index 65ad91303..8e782ac2b 100644 --- a/src/hb-aat-layout-morx-table.hh +++ b/src/hb-aat-layout-morx-table.hh @@ -173,7 +173,10 @@ struct RearrangementSubtable if (driver.is_idempotent_on_all_out_of_bounds (&dc, c) && !c->buffer_digest.may_have (c->machine_glyph_set)) + { + (void) c->buffer->message (c->font, "skipped chainsubtable because no glyph matches"); return_trace (false); + } driver.drive (&dc, c); @@ -338,7 +341,10 @@ struct ContextualSubtable if (driver.is_idempotent_on_all_out_of_bounds (&dc, c) && !c->buffer_digest.may_have (c->machine_glyph_set)) + { + (void) c->buffer->message (c->font, "skipped chainsubtable because no glyph matches"); return_trace (false); + } driver.drive (&dc, c); @@ -601,7 +607,10 @@ struct LigatureSubtable if (driver.is_idempotent_on_all_out_of_bounds (&dc, c) && !c->buffer_digest.may_have (c->machine_glyph_set)) + { + (void) c->buffer->message (c->font, "skipped chainsubtable because no glyph matches"); return_trace (false); + } driver.drive (&dc, c); @@ -877,7 +886,10 @@ struct InsertionSubtable if (driver.is_idempotent_on_all_out_of_bounds (&dc, c) && !c->buffer_digest.may_have (c->machine_glyph_set)) + { + (void) c->buffer->message (c->font, "skipped chainsubtable because no glyph matches"); return_trace (false); + } driver.drive (&dc, c);