summaryrefslogtreecommitdiff
path: root/tree/debug.c
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2004-10-14 06:42:42 +0200
committerTor Andersson <tor@ghostscript.com>2004-10-14 06:42:42 +0200
commit21c12718cabdd7acad2a2ceccc938e0df659b4f9 (patch)
tree9a14e1345ac4fba2b3bcd153fc1d101a79d74c86 /tree/debug.c
parent5e5ff796c9d1b4c4e4360e6823ec338845d26937 (diff)
downloadmupdf-21c12718cabdd7acad2a2ceccc938e0df659b4f9.tar.xz
index fonts by cid not glyph
Diffstat (limited to 'tree/debug.c')
-rw-r--r--tree/debug.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tree/debug.c b/tree/debug.c
index b10eacad..c56464ba 100644
--- a/tree/debug.c
+++ b/tree/debug.c
@@ -124,7 +124,10 @@ static void lisptext(fz_textnode *node, int level)
for (i = 0; i < node->len; i++)
{
indent(level + 1);
- printf("(g %d %g %g)\n", node->els[i].g, node->els[i].x, node->els[i].y);
+ if (node->els[i].cid >= 32 && node->els[i].cid < 128)
+ printf("(cid '%c' %g %g)\n", node->els[i].cid, node->els[i].x, node->els[i].y);
+ else
+ printf("(cid <%04x> %g %g)\n", node->els[i].cid, node->els[i].x, node->els[i].y);
}
indent(level);