summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gs/Resource/Init/pdf_font.ps13
1 files changed, 9 insertions, 4 deletions
diff --git a/gs/Resource/Init/pdf_font.ps b/gs/Resource/Init/pdf_font.ps
index 5a874004e..50d1a2888 100644
--- a/gs/Resource/Init/pdf_font.ps
+++ b/gs/Resource/Init/pdf_font.ps
@@ -1068,12 +1068,17 @@ currentdict /eexec_pdf_param_dict .undef
% Stack: filepos fontres cidfont
} {
% filepos fontres stream
- 1 index /FontDescriptor oget
- /Flags get 4 and 0 ne {
- //true % symbolic
+ 1 index /Encoding knownoget {
+ dup /MacRomanEncoding eq exch /WinAnsiEncoding eq or {
+ //false % => non-symbolic
+ } {
+ 1 index /FontDescriptor oget /Flags oget
+ 4 and 0 ne % depending on the flag
+ } ifelse
} {
- 1 index /Encoding oknown not % no encoding => symbolic
+ //true % no encoding => symbolic
} ifelse
+
dup {
//null
} {