(HeaderOrFooterTextLines): Handle multiple strings in a line.

This commit is contained in:
Kenichi Handa 2003-09-26 11:28:16 +00:00
parent bd4a85b9ff
commit e7894f8e97

View file

@ -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