diff options
-rw-r--r-- | gs/Resource/Init/gs_fonts.ps | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/gs/Resource/Init/gs_fonts.ps b/gs/Resource/Init/gs_fonts.ps index a597c5aed..8ab6872e5 100644 --- a/gs/Resource/Init/gs_fonts.ps +++ b/gs/Resource/Init/gs_fonts.ps | |||
@@ -385,12 +385,20 @@ systemdict /NONATIVEFONTMAP known .setnativefontmapbuilt | |||
385 | pop pop pop | 385 | pop pop pop |
386 | }{ | 386 | }{ |
387 | % we could open the font file | 387 | % we could open the font file |
388 | .findfontname | 388 | mark 2 1 roll |
389 | not { dup 0 get } if % stack: (newname) [ (name) (path) ] | 389 | {.findfontname} stopped |
390 | % DEBUG { ( found ) print dup print (\n) print flush } if | 390 | { |
391 | % add entry to the fontmap | 391 | cleartomark |
392 | 1 index exch 0 exch dup type /nametype ne {cvn} if put | 392 | pop pop |
393 | aload pop .definefontmap | 393 | } |
394 | { | ||
395 | 3 -1 roll pop | ||
396 | not { dup 0 get } if % stack: (newname) [ (name) (path) ] | ||
397 | % DEBUG { ( found ) print dup print (\n) print flush } if | ||
398 | % add entry to the fontmap | ||
399 | 1 index exch 0 exch dup type /nametype ne {cvn} if put | ||
400 | aload pop .definefontmap | ||
401 | } ifelse | ||
394 | } ifelse | 402 | } ifelse |
395 | } forall | 403 | } forall |
396 | } if | 404 | } if |