summaryrefslogtreecommitdiff
path: root/world/node_toxml.c
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2009-02-23 21:28:20 +0100
committerTor Andersson <tor@ghostscript.com>2009-02-23 21:28:20 +0100
commit6f9e2167d235a6b89ee13e3c98e5120a8c85fe29 (patch)
tree81fae599803e0ec2ff32f8098c27fd84bd63eeb2 /world/node_toxml.c
parent5d500fad85344dcad7e6c0cf0463f5d58f6acea3 (diff)
downloadmupdf-6f9e2167d235a6b89ee13e3c98e5120a8c85fe29.tar.xz
Refactor fz_font and pdf_font mess into fz_font and pdf_fontdesc with more font logic on the PDF side and freetype rendering on the fitz side.
Diffstat (limited to 'world/node_toxml.c')
-rw-r--r--world/node_toxml.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/world/node_toxml.c b/world/node_toxml.c
index 4dff8dbf..cc87c997 100644
--- a/world/node_toxml.c
+++ b/world/node_toxml.c
@@ -119,12 +119,12 @@ static void xmltext(fz_textnode *node, int level)
for (i = 0; i < node->len; i++)
{
indent(level + 1);
- if (node->els[i].cid >= 32 && node->els[i].cid < 128)
- printf("<g c=\"%c\" x=\"%g\" y=\"%g\" />\n",
- node->els[i].cid, node->els[i].x, node->els[i].y);
+ if (node->els[i].ucs >= 32 && node->els[i].ucs < 128)
+ printf("<g ucs=\"%c\" gid=%d x=\"%g\" y=\"%g\" />\n",
+ node->els[i].ucs, node->els[i].gid, node->els[i].x, node->els[i].y);
else
- printf("<g c=\"<%04x>\" x=\"%g\" y=\"%g\" />\n",
- node->els[i].cid, node->els[i].x, node->els[i].y);
+ printf("<g ucs=\"U+%04X\" gid=%d x=\"%g\" y=\"%g\" />\n",
+ node->els[i].ucs, node->els[i].gid, node->els[i].x, node->els[i].y);
}
indent(level);