No mate - it's just that the code you have has a
PHP Code:
while($i<count($output)){ ...
bit which indicated that it probably was originally coded to work with an array, where each array entry is one line in your multi-line output.
Anyd it should be relatively trivial to have a switch to go from left to right aligned - I did something similar for a automatic label-making website... {look at the
PHP Code:
(($i * $zeilenabstand) - $zeilenabstand + $top)
bit (which calculates the top position of each line in the array for the text), and apply similar math to the $left value ...}