From cb4156b9545f131698026106b289a5253f295e23 Mon Sep 17 00:00:00 2001 From: Chris Liddell Date: Thu, 4 Nov 2021 14:33:01 +0000 Subject: Support user specified Fontmap files in pdfi Handle -sFONTMAP param in gpdl, and copy the relevant strings from the Postscript world when pdfi is called from Ghostscript. To make things a little simpler, there is also a tweak to the Postscript code, so the FONTMAP parameter gets split into an array of strings during initialisation, rather than at use time, which saves doing that process once for Postscript and once for pdfi. --- pdf/pdf_fmap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pdf/pdf_fmap.h') diff --git a/pdf/pdf_fmap.h b/pdf/pdf_fmap.h index 73ae6aee6..c76502039 100644 --- a/pdf/pdf_fmap.h +++ b/pdf/pdf_fmap.h @@ -17,7 +17,7 @@ or might be a string. */ int -pdf_fontmap_lookup_font(pdf_context *ctx, pdf_name *fname, pdf_obj **mapname); +pdf_fontmap_lookup_font(pdf_context *ctx, pdf_name *fname, pdf_obj **mapname, int *findex); /* The name parameter is to allow for internally derived font names to be looked up, like, for example, /Adobe-Japan1 -- cgit v1.2.1