diff options
author | Tor Andersson <tor@ghostscript.com> | 2010-05-25 21:37:41 +0200 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2010-05-25 21:37:41 +0200 |
commit | fb5e03a705ab0214459e6ddf6dfdb9acf1adf83c (patch) | |
tree | fb4c8effc24bef48a38369d69c5a9986922bb79c /fitz/dev_draw.c | |
parent | d2c97a9a5b13536a993dc6b3c271cbebf50032d0 (diff) | |
download | mupdf-fb5e03a705ab0214459e6ddf6dfdb9acf1adf83c.tar.xz |
Support one-to-many glyph/character mappings.
Diffstat (limited to 'fitz/dev_draw.c')
-rw-r--r-- | fitz/dev_draw.c | 6 |
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); |