Skip to content
Snippets Groups Projects
Commit 7e5f1498 authored by Martin Mareš's avatar Martin Mareš
Browse files

Scan: Do not fail if a font dictionary lacks /FontInfo

This happens with SystemFont and SystemBoldFont on Xerox WC7845.
parent fee90ee5
No related branches found
No related tags found
No related merge requests found
......@@ -310,6 +310,7 @@ sub scan_psfonts() {
save exch
findfont
% Parse FontInfo and find version
dup /FontInfo known {
dup /FontInfo get
(%K% /Version) =
dup /Version known { dup /Version get == } {
......@@ -318,6 +319,7 @@ sub scan_psfonts() {
} ifelse
} ifelse
pop
} { } ifelse
% Print Encoding
(%K% /Encoding) =
dup /Encoding known { dup /Encoding get == } { (???) == } ifelse
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment