From 902e74a098dad8c3b487856284f9fdf99b04f9f1 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 18 Aug 2015 18:55:03 +0100 Subject: [PATCH] Commented-out code to print buffer before each lookup To be turned into a useful HB_DEBUG_SHAPE infrastructure... --- src/hb-ot-layout.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/hb-ot-layout.cc b/src/hb-ot-layout.cc index 5a573dd34..39d007d67 100644 --- a/src/hb-ot-layout.cc +++ b/src/hb-ot-layout.cc @@ -1010,6 +1010,18 @@ inline void hb_ot_map_t::apply (const Proxy &proxy, const stage_map_t *stage = &stages[table_index][stage_index]; for (; i < stage->last_lookup; i++) { +#if 0 + char buf[4096]; + hb_buffer_serialize_glyphs (buffer, 0, buffer->len, + buf, sizeof (buf), NULL, + font, + HB_BUFFER_SERIALIZE_FORMAT_TEXT, + Proxy::table_index == 0 ? + HB_BUFFER_SERIALIZE_FLAG_NO_POSITIONS : + HB_BUFFER_SERIALIZE_FLAG_DEFAULT); + printf ("buf: [%s]\n", buf); +#endif + unsigned int lookup_index = lookups[table_index][i].index; c.set_lookup_index (lookup_index); c.set_lookup_mask (lookups[table_index][i].mask);