Commented-out code to print buffer before each lookup
To be turned into a useful HB_DEBUG_SHAPE infrastructure...
This commit is contained in:
parent
75504a5048
commit
902e74a098
|
@ -1010,6 +1010,18 @@ inline void hb_ot_map_t::apply (const Proxy &proxy,
|
||||||
const stage_map_t *stage = &stages[table_index][stage_index];
|
const stage_map_t *stage = &stages[table_index][stage_index];
|
||||||
for (; i < stage->last_lookup; i++)
|
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;
|
unsigned int lookup_index = lookups[table_index][i].index;
|
||||||
c.set_lookup_index (lookup_index);
|
c.set_lookup_index (lookup_index);
|
||||||
c.set_lookup_mask (lookups[table_index][i].mask);
|
c.set_lookup_mask (lookups[table_index][i].mask);
|
||||||
|
|
Loading…
Reference in New Issue