diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2012-02-06 16:10:07 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2012-02-06 16:10:07 +0100 |
commit | 5cd45b68ad936006f3783abbcc064658d5e3508a (patch) | |
tree | 8abc09eada6f28b68194b13c269707d8ed6b4161 /pdf/pdf_metrics.c | |
parent | 499c0e9b6d7a7ea537b90b33af2b3d655102a597 (diff) | |
download | mupdf-5cd45b68ad936006f3783abbcc064658d5e3508a.tar.xz |
Pass context to cmap and font descriptor functions.
Diffstat (limited to 'pdf/pdf_metrics.c')
-rw-r--r-- | pdf/pdf_metrics.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/pdf/pdf_metrics.c b/pdf/pdf_metrics.c index ae6383eb..fc888257 100644 --- a/pdf/pdf_metrics.c +++ b/pdf/pdf_metrics.c @@ -2,19 +2,19 @@ #include "mupdf.h" void -pdf_set_font_wmode(pdf_font_desc *font, int wmode) +pdf_set_font_wmode(fz_context *ctx, pdf_font_desc *font, int wmode) { font->wmode = wmode; } void -pdf_set_default_hmtx(pdf_font_desc *font, int w) +pdf_set_default_hmtx(fz_context *ctx, pdf_font_desc *font, int w) { font->dhmtx.w = w; } void -pdf_set_default_vmtx(pdf_font_desc *font, int y, int w) +pdf_set_default_vmtx(fz_context *ctx, pdf_font_desc *font, int y, int w) { font->dvmtx.y = y; font->dvmtx.w = w; @@ -67,7 +67,7 @@ static int cmpv(const void *a0, const void *b0) } void -pdf_end_hmtx(pdf_font_desc *font) +pdf_end_hmtx(fz_context *ctx, pdf_font_desc *font) { if (!font->hmtx) return; @@ -76,7 +76,7 @@ pdf_end_hmtx(pdf_font_desc *font) } void -pdf_end_vmtx(pdf_font_desc *font) +pdf_end_vmtx(fz_context *ctx, pdf_font_desc *font) { if (!font->vmtx) return; @@ -85,7 +85,7 @@ pdf_end_vmtx(pdf_font_desc *font) } pdf_hmtx -pdf_get_hmtx(pdf_font_desc *font, int cid) +pdf_get_hmtx(fz_context *ctx, pdf_font_desc *font, int cid) { int l = 0; int r = font->hmtx_len - 1; @@ -110,7 +110,7 @@ notfound: } pdf_vmtx -pdf_get_vmtx(pdf_font_desc *font, int cid) +pdf_get_vmtx(fz_context *ctx, pdf_font_desc *font, int cid) { pdf_hmtx h; pdf_vmtx v; @@ -133,7 +133,7 @@ pdf_get_vmtx(pdf_font_desc *font, int cid) } notfound: - h = pdf_get_hmtx(font, cid); + h = pdf_get_hmtx(ctx, font, cid); v = font->dvmtx; v.x = h.w / 2; return v; |