summaryrefslogtreecommitdiff
path: root/fitz/dev_draw.c
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2010-05-25 21:37:41 +0200
committerTor Andersson <tor@ghostscript.com>2010-05-25 21:37:41 +0200
commitfb5e03a705ab0214459e6ddf6dfdb9acf1adf83c (patch)
treefb4c8effc24bef48a38369d69c5a9986922bb79c /fitz/dev_draw.c
parentd2c97a9a5b13536a993dc6b3c271cbebf50032d0 (diff)
downloadmupdf-fb5e03a705ab0214459e6ddf6dfdb9acf1adf83c.tar.xz
Support one-to-many glyph/character mappings.
Diffstat (limited to 'fitz/dev_draw.c')
-rw-r--r--fitz/dev_draw.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/fitz/dev_draw.c b/fitz/dev_draw.c
index 1b2b4ded..b5b669bd 100644
--- a/fitz/dev_draw.c
+++ b/fitz/dev_draw.c
@@ -349,6 +349,9 @@ fz_drawfilltext(void *user, fz_text *text, fz_matrix ctm,
for (i = 0; i < text->len; i++)
{
gid = text->els[i].gid;
+ if (gid < 0)
+ continue;
+
tm.e = text->els[i].x;
tm.f = text->els[i].y;
trm = fz_concat(tm, ctm);
@@ -433,6 +436,9 @@ fz_drawcliptext(void *user, fz_text *text, fz_matrix ctm, int accumulate)
for (i = 0; i < text->len; i++)
{
gid = text->els[i].gid;
+ if (gid < 0)
+ continue;
+
tm.e = text->els[i].x;
tm.f = text->els[i].y;
trm = fz_concat(tm, ctm);