Subject: | Word spacing changes after calling block_text |
Date: | Thu, 24 Nov 2016 18:02:09 +0000 |
To: | bug-PDF-Create [...] rt.cpan.org |
From: | Andrew Beverley <andy [...] andybev.com> |
When calling block_text, it adjusts the word spacing of the paragraph
if it's over multiple lines.
The problem is that the word spacing is then set for future string
prints, using several other string functions (e.g. stringl, stringc,
stringr and printnl). These functions do not include a Tw parameters,
so they use the one set by the previous block_text
The overall effect is that several lines will be printed with default
word spacing, then another word spacing will be used for the block, and
then subsequent lines will use that new word spacing. This is
particularly a problem if the block text is sometimes a single line and
sometimes multiple lines, as the subsequent string lines then change in
width.
I'm not sure what the best fix is, but how about stringl etc have a new
parameter for the word spacing, which is set to 0 (the default) if not
specified?