summaryrefslogtreecommitdiff
path: root/psi/zpdfops.c
diff options
context:
space:
mode:
authorChris Liddell <chris.liddell@artifex.com>2021-12-15 15:41:06 +0000
committerChris Liddell <chris.liddell@artifex.com>2021-12-16 15:13:53 +0000
commitd368db06982c8d733591e6f88ebdc2a773a6ef66 (patch)
tree813c82de4b7e1d6ef0059b8a4842d5a076ec3880 /psi/zpdfops.c
parent6e537340b48d987838d0180da7daa27428a2305b (diff)
downloadghostpdl-d368db06982c8d733591e6f88ebdc2a773a6ef66.tar.gz
Implement the NONATIVEFONTMAP command line parameter.
Prevents scanning FONTDIR for potential substitute fonts.
Diffstat (limited to 'psi/zpdfops.c')
-rw-r--r--psi/zpdfops.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/psi/zpdfops.c b/psi/zpdfops.c
index 455d913fa..21f18ac38 100644
--- a/psi/zpdfops.c
+++ b/psi/zpdfops.c
@@ -1209,6 +1209,11 @@ static int zPDFInit(i_ctx_t *i_ctx_p)
goto error;
pdfctx->ctx->args.ignoretounicode = pvalueref->value.boolval;
}
+ if (dict_find_string(pdictref, "NONATIVEFONTMAP", &pvalueref) > 0) {
+ if (!r_has_type(pvalueref, t_boolean))
+ goto error;
+ pdfctx->ctx->args.nonativefontmap = pvalueref->value.boolval;
+ }
code = 0;
pop(1);
}