diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2015-08-18 18:55:03 +0100 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2015-08-18 18:55:03 +0100 |
commit | 902e74a098dad8c3b487856284f9fdf99b04f9f1 (patch) | |
tree | 21cefaada94e2d28caef56956d867f0e8035f391 | |
parent | 75504a50488a6aac0b9789f728fb5b87e641d4c3 (diff) | |
download | harfbuzz-902e74a098dad8c3b487856284f9fdf99b04f9f1.tar.gz |
Commented-out code to print buffer before each lookup
To be turned into a useful HB_DEBUG_SHAPE infrastructure...
-rw-r--r-- | src/hb-ot-layout.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/hb-ot-layout.cc b/src/hb-ot-layout.cc index 5a573dd3..39d007d6 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); |