summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNancy Durgin <nancy.durgin@artifex.com>2019-01-30 12:09:43 -0800
committerNancy Durgin <nancy.durgin@artifex.com>2019-01-30 12:15:59 -0800
commit430e219ea17a2650577d70021399c4ead05869e0 (patch)
tree02aaefd5de94376f2a0c0a088423cc430f388526
parentcdcb56ed5af686ab2e368587506f12ba071ff41e (diff)
Undef .completefont
- make it an operator - make sure all procedures that use it are executeonly - undef in gs_init.ps
-rw-r--r--Resource/Init/gs_fonts.ps6
-rw-r--r--Resource/Init/gs_init.ps1
-rw-r--r--Resource/Init/gs_ttf.ps2
3 files changed, 5 insertions, 4 deletions
diff --git a/Resource/Init/gs_fonts.ps b/Resource/Init/gs_fonts.ps
index d2cd21e10..1fa156913 100644
--- a/Resource/Init/gs_fonts.ps
+++ b/Resource/Init/gs_fonts.ps
@@ -509,7 +509,7 @@ buildfontdict 3 /.buildfont3 cvx put
509 } if 509 } if
510 readonly % stack: name fontdict 510 readonly % stack: name fontdict
511 } stopped { $error /command get /invalidfont signalerror } if 511 } stopped { $error /command get /invalidfont signalerror } if
512} bind def 512} bind executeonly odef
513/definefont 513/definefont
514 { dup rcheck not { 514 { dup rcheck not {
515 /definefont cvx /invalidaccess signalerror 515 /definefont cvx /invalidaccess signalerror
@@ -527,7 +527,7 @@ buildfontdict 3 /.buildfont3 cvx put
527 % If the font originated as a resource, register it. 527 % If the font originated as a resource, register it.
528 currentfile .currentresourcefile eq { dup .registerfont } if 528 currentfile .currentresourcefile eq { dup .registerfont } if
529 readonly 529 readonly
530 } odef 530 } .bind executeonly odef
531 531
532% Define a procedure for defining aliased fonts. 532% Define a procedure for defining aliased fonts.
533% We use this only for explicitly aliased fonts, not substituted fonts: 533% We use this only for explicitly aliased fonts, not substituted fonts:
@@ -579,7 +579,7 @@ buildfontdict 3 /.buildfont3 cvx put
579 } 579 }
580 ifelse 580 ifelse
581 exch setglobal 581 exch setglobal
582 } odef % so findfont will bind it 582 } bind executeonly odef % so findfont will bind it
583 583
584% Define .loadfontfile for loading a font. If we recognize Type 1 and/or 584% Define .loadfontfile for loading a font. If we recognize Type 1 and/or
585% TrueType fonts, gs_type1.ps and/or gs_ttf.ps will redefine this. 585% TrueType fonts, gs_type1.ps and/or gs_ttf.ps will redefine this.
diff --git a/Resource/Init/gs_init.ps b/Resource/Init/gs_init.ps
index c4f618d51..6f5f58933 100644
--- a/Resource/Init/gs_init.ps
+++ b/Resource/Init/gs_init.ps
@@ -2277,6 +2277,7 @@ SAFER { .setsafeglobal } if
2277 /.type1build 2277 /.type1build
2278 /.origdefinefont /.origundefinefont /.origfindfont 2278 /.origdefinefont /.origundefinefont /.origfindfont
2279 /.buildnativefontmap 2279 /.buildnativefontmap
2280 /.completefont
2280 2281
2281 % Used by a free user in the Library of Congress. Apparently this is used to 2282 % Used by a free user in the Library of Congress. Apparently this is used to
2282 % draw a partial page, which is then filled in by the results of a barcode 2283 % draw a partial page, which is then filled in by the results of a barcode
diff --git a/Resource/Init/gs_ttf.ps b/Resource/Init/gs_ttf.ps
index 2f292996f..4c6434121 100644
--- a/Resource/Init/gs_ttf.ps
+++ b/Resource/Init/gs_ttf.ps
@@ -1980,4 +1980,4 @@ currentdict /postalias undef
1980 dup /FontName font_name put % replace any definition of /FontName 1980 dup /FontName font_name put % replace any definition of /FontName
1981 end end 1981 end end
1982 .completefont 1982 .completefont
1983} bind def 1983} bind executeonly def