summaryrefslogtreecommitdiff
path: root/render/glyphcache.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 /render/glyphcache.c
parent5e5ff796c9d1b4c4e4360e6823ec338845d26937 (diff)
downloadmupdf-21c12718cabdd7acad2a2ceccc938e0df659b4f9.tar.xz
index fonts by cid not glyph
Diffstat (limited to 'render/glyphcache.c')
-rw-r--r--render/glyphcache.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/render/glyphcache.c b/render/glyphcache.c
index 81b1f5d5..23fb5dd1 100644
--- a/render/glyphcache.c
+++ b/render/glyphcache.c
@@ -297,12 +297,18 @@ evictlast(fz_glyphcache *arena)
}
fz_error *
-fz_renderglyph(fz_glyphcache *arena, fz_glyph *glyph, fz_font *font, int gid, fz_matrix ctm)
+fz_renderglyph(fz_glyphcache *arena, fz_glyph *glyph, fz_font *font, int cid, fz_matrix ctm)
{
fz_error *error;
fz_key key;
fz_val *val;
int size;
+ int gid;
+
+ if (font->cidtogid)
+ gid = font->cidtogid[cid];
+ else
+ gid = cid;
key.fid = font;
key.gid = gid;