summaryrefslogtreecommitdiff
path: root/Resource
diff options
context:
space:
mode:
authorJustin Beaty <foss@beatyconsulting.com>2023-02-13 15:16:37 +0000
committerRobin Watts <Robin.Watts@artifex.com>2023-02-13 16:12:34 +0000
commit9e79b6b270bfbe54a4cfee706fba98f76848a149 (patch)
tree5e2c4b5ea538d98a4bee7da23c33635109d0c690 /Resource
parent924b58ac2882ad20e825c77bfc412425c9bcfdb2 (diff)
downloadghostpdl-9e79b6b270bfbe54a4cfee706fba98f76848a149.tar.gz
pdfwrite - permit fonts to be converted to linework based on the name
No bug report for this one, the patch was submitted by Justin after a conversation on Discord (#ghostscript, 11th February 2023). The goal was to extend the 'NoOutputFonts' control, which turns all text in a PDF file into linework, such that the decision could be made based on the font name. The supplied patch does so by adding two new controls, AlwaysOutline and NeverOutline, which can only be set from PostScript (because the font names are in an array). Text using fonts appearing in the AlwaysOutline array will be converted to linework regardless of the setting of NoOutputFonts. If NoOutputFonts is set to true, then text using fonts appearing in the NeverOutline array will still use the font, and will not be converted to linework.
Diffstat (limited to 'Resource')
-rw-r--r--Resource/Init/gs_pdfwr.ps4
1 files changed, 3 insertions, 1 deletions
diff --git a/Resource/Init/gs_pdfwr.ps b/Resource/Init/gs_pdfwr.ps
index 7945a3221..a04d9e350 100644
--- a/Resource/Init/gs_pdfwr.ps
+++ b/Resource/Init/gs_pdfwr.ps
@@ -1,4 +1,4 @@
-% Copyright (C) 2001-2021 Artifex Software, Inc.
+% Copyright (C) 2001-2023 Artifex Software, Inc.
% All Rights Reserved.
%
% This software is provided AS-IS with no warranty, either express or
@@ -847,6 +847,8 @@ currentdict /.pdf_hook_DSC_Creator undef
/PassThroughJPXImages { }
/PSDocOptions { }
/PSPageOptions { }
+ /AlwaysOutline { }
+ /NeverOutline { }
.dicttomark readonly def
/.distillerdevice
{