Mercurial > emacs
changeset 28428:b2d43a699564
Replace gs_languagelevel by languagelevel.
(printBackground, SetColor): New procs.
(ZebraColor): Renaming old ZebraGray var.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Thu, 30 Mar 2000 13:27:27 +0000 |
parents | 15c0a66a4a8b |
children | 2e3e0b3b6108 |
files | etc/ps-prin1.ps |
diffstat | 1 files changed, 26 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/etc/ps-prin1.ps Thu Mar 30 13:26:37 2000 +0000 +++ b/etc/ps-prin1.ps Thu Mar 30 13:27:27 2000 +0000 @@ -162,8 +162,7 @@ 0 Descent Ascent sub rlineto % D neg 0 rlineto % E closepath - bgcolor aload pop setrgbcolor - fill + FillBgColor grestore }def @@ -322,10 +321,13 @@ }if }def +% stack: color-specifier |- -- +/SetColor{dup type /realtype eq{setgray}{aload pop setrgbcolor}ifelse}def + % stack: -- /printZebra{ gsave - ZebraGray setgray + ZebraColor SetColor /double-zebra ZebraHeight ZebraHeight add def /yiter double-zebra LineHeight mul neg def /xiter PrintWidth InterColumn add def @@ -355,6 +357,25 @@ grestore }def +% stack: -- +/printBackground{ + /BackgroundColor where{ + pop gsave BackgroundColor SetColor + NumberOfColumns{ + gsave + 0 LineHeight 0.65 mul rmoveto + PrintWidth 0 rlineto + 0 PrintHeight neg rlineto + PrintWidth neg 0 rlineto + 0 PrintHeight rlineto + fill + grestore + PrintWidth InterColumn add 0 rmoveto + }repeat + grestore + }if +}def + % tx ty rotation xscale yscale xpos ypos BeginBackImage /BeginBackImage{ /-save-image- save def @@ -459,6 +480,7 @@ % ---- when 1st column, print all background effects ColumnIndex 1 eq{ 0 PrintStartY moveto % move to where printing will start + printBackground Zebra {printZebra}if printGlobalBackground printLocalBackground @@ -655,7 +677,7 @@ /t1 F gsave (languagelevel = ) show - gs_languagelevel 32 string cvs show + languagelevel 32 string cvs show grestore 0 FontHeight neg rmoveto gsave