summaryrefslogtreecommitdiff
path: root/pdf/pdf_interpret.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2012-02-06 16:10:07 +0100
committerTor Andersson <tor.andersson@artifex.com>2012-02-06 16:10:07 +0100
commit5cd45b68ad936006f3783abbcc064658d5e3508a (patch)
tree8abc09eada6f28b68194b13c269707d8ed6b4161 /pdf/pdf_interpret.c
parent499c0e9b6d7a7ea537b90b33af2b3d655102a597 (diff)
downloadmupdf-5cd45b68ad936006f3783abbcc064658d5e3508a.tar.xz
Pass context to cmap and font descriptor functions.
Diffstat (limited to 'pdf/pdf_interpret.c')
-rw-r--r--pdf/pdf_interpret.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pdf/pdf_interpret.c b/pdf/pdf_interpret.c
index 3a32b693..b5938829 100644
--- a/pdf/pdf_interpret.c
+++ b/pdf/pdf_interpret.c
@@ -705,11 +705,11 @@ pdf_show_char(pdf_csi *csi, int cid)
ucslen = 1;
}
- gid = pdf_font_cid_to_gid(fontdesc, cid);
+ gid = pdf_font_cid_to_gid(ctx, fontdesc, cid);
if (fontdesc->wmode == 1)
{
- v = pdf_get_vmtx(fontdesc, cid);
+ v = pdf_get_vmtx(ctx, fontdesc, cid);
tsm.e -= v.x * gstate->size * 0.001f;
tsm.f -= v.y * gstate->size * 0.001f;
}
@@ -767,7 +767,7 @@ pdf_show_char(pdf_csi *csi, int cid)
if (fontdesc->wmode == 0)
{
- h = pdf_get_hmtx(fontdesc, cid);
+ h = pdf_get_hmtx(ctx, fontdesc, cid);
w0 = h.w * 0.001f;
tx = (w0 * gstate->size + gstate->char_space) * gstate->scale;
csi->tm = fz_concat(fz_translate(tx, 0), csi->tm);