Fix #1426 : stamp text position

This commit is contained in:
Romain Neutron
2013-09-02 15:59:44 +02:00
parent b3ba5b55a0
commit 6661b532eb

View File

@@ -308,7 +308,7 @@ class recordutils_image extends recordutils
$font = $app['imagine']->font(__DIR__ . '/arial.ttf', $block['fontsize'], $block['fontcolor']);
foreach ($block['lines'] as $line) {
if ($line['t'] != '') {
$draw->text($line['t'], $font, new Point(0, $txt_ypos), 0);
$draw->text($line['t'], $font, new Point($logo_reswidth, $txt_ypos), 0);
}
$txt_ypos += $line['h'];
}