Mercurial > emacs
comparison etc/ps-prin1.ps @ 89529:1f7ce29b19bd
(HeaderOrFooterTextLines): Handle multiple strings in a line.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Fri, 26 Sep 2003 11:28:16 +0000 |
parents | e5675426ff4c |
children | 68c22ea6027c |
comparison
equal
deleted
inserted
replaced
89528:c75e3c6b608a | 89529:1f7ce29b19bd |
---|---|
765 % lines is-right HeaderOrFooterTextLines | 765 % lines is-right HeaderOrFooterTextLines |
766 /HeaderOrFooterTextLines{ | 766 /HeaderOrFooterTextLines{ |
767 /is_right exch def | 767 /is_right exch def |
768 HFStart moveto | 768 HFStart moveto |
769 { % ---- process the lines | 769 { % ---- process the lines |
770 aload pop | 770 dup 0 get F |
771 exch F | |
772 gsave | 771 gsave |
773 dup xcheck{exec}if | |
774 is_right{ | 772 is_right{ |
775 dup stringwidth pop | 773 PrintHeaderWidth HFPad HFPad add sub 0 rmoveto |
776 PrintHeaderWidth exch sub HFPad HFPad add sub 0 rmoveto | 774 dup{ |
775 dup type /nametype eq{ | |
776 pop | |
777 }{ | |
778 dup xcheck{exec}if | |
779 stringwidth pop neg 0 rmoveto | |
780 }ifelse | |
781 } forall | |
777 }if | 782 }if |
778 HFColor SetColor | 783 HFColor SetColor |
779 show | 784 { |
785 dup type /nametype eq { | |
786 pop | |
787 }{ | |
788 dup xcheck{exec}if | |
789 show | |
790 } ifelse | |
791 } forall | |
780 grestore | 792 grestore |
781 0 HFLineHeight neg rmoveto | 793 0 HFLineHeight neg rmoveto |
782 }forall | 794 }forall |
783 }def | 795 }def |
784 | 796 |