summaryrefslogtreecommitdiff
path: root/source/pdf/pdf-type3.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2018-04-27 11:46:37 +0200
committerTor Andersson <tor.andersson@artifex.com>2018-04-27 14:15:15 +0200
commit4ad2a93470e859159fe8507fb6c3e2ef7995aa9b (patch)
tree0c937587956b3d9f1eb12ebf041ca690c76b9c39 /source/pdf/pdf-type3.c
parent617e280738a7dd91a6289f6e2e4e361785fb2281 (diff)
downloadmupdf-4ad2a93470e859159fe8507fb6c3e2ef7995aa9b.tar.xz
Use pdf_dict_get_int, etc.
Diffstat (limited to 'source/pdf/pdf-type3.c')
-rw-r--r--source/pdf/pdf-type3.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/pdf/pdf-type3.c b/source/pdf/pdf-type3.c
index ad222fbe..cd7693cf 100644
--- a/source/pdf/pdf-type3.c
+++ b/source/pdf/pdf-type3.c
@@ -122,8 +122,8 @@ pdf_load_type3_font(fz_context *ctx, pdf_document *doc, pdf_obj *rdb, pdf_obj *d
pdf_set_default_hmtx(ctx, fontdesc, 0);
- first = pdf_to_int(ctx, pdf_dict_get(ctx, dict, PDF_NAME(FirstChar)));
- last = pdf_to_int(ctx, pdf_dict_get(ctx, dict, PDF_NAME(LastChar)));
+ first = pdf_dict_get_int(ctx, dict, PDF_NAME(FirstChar));
+ last = pdf_dict_get_int(ctx, dict, PDF_NAME(LastChar));
if (first < 0 || last > 255 || first > last)
first = last = 0;
@@ -136,7 +136,7 @@ pdf_load_type3_font(fz_context *ctx, pdf_document *doc, pdf_obj *rdb, pdf_obj *d
for (i = first; i <= last; i++)
{
- float w = pdf_to_real(ctx, pdf_array_get(ctx, widths, i - first));
+ float w = pdf_array_get_real(ctx, widths, i - first);
w = font->t3matrix.a * w * 1000;
font->t3widths[i] = w * 0.001f;
pdf_add_hmtx(ctx, fontdesc, i, i, w);