From e7894f8e97c37266a18a1ea617aa61213685b1b2 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Fri, 26 Sep 2003 11:28:16 +0000 Subject: [PATCH] (HeaderOrFooterTextLines): Handle multiple strings in a line. --- etc/ps-prin1.ps | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/etc/ps-prin1.ps b/etc/ps-prin1.ps index 1716562b0f4..f21acd54cd3 100644 --- a/etc/ps-prin1.ps +++ b/etc/ps-prin1.ps @@ -767,16 +767,28 @@ StandardEncoding 46 82 getinterval aload pop /is_right exch def HFStart moveto { % ---- process the lines - aload pop - exch F + dup 0 get F gsave - dup xcheck{exec}if is_right{ - dup stringwidth pop - PrintHeaderWidth exch sub HFPad HFPad add sub 0 rmoveto + PrintHeaderWidth HFPad HFPad add sub 0 rmoveto + dup{ + dup type /nametype eq{ + pop + }{ + dup xcheck{exec}if + stringwidth pop neg 0 rmoveto + }ifelse + } forall }if HFColor SetColor - show + { + dup type /nametype eq { + pop + }{ + dup xcheck{exec}if + show + } ifelse + } forall grestore 0 HFLineHeight neg rmoveto }forall -- 2.39.2