@@ 102-104 (lines=3) @@ | ||
99 | $x = $label->getX(); |
|
100 | $y = $label->getY() + ceil(($height - $box[5]) / 2); |
|
101 | $align = $label->getAlign()->getValue(); |
|
102 | if ($align === Align::RIGHT) { |
|
103 | $x = $label->getX() + $label->getWidth() - $box[2]; |
|
104 | } |
|
105 | if ($align === Align::CENTER) { // center |
|
106 | $x = $label->getX() + ceil(($label->getWidth() - $box[2]) / 2); |
|
107 | } |
|
@@ 105-107 (lines=3) @@ | ||
102 | if ($align === Align::RIGHT) { |
|
103 | $x = $label->getX() + $label->getWidth() - $box[2]; |
|
104 | } |
|
105 | if ($align === Align::CENTER) { // center |
|
106 | $x = $label->getX() + ceil(($label->getWidth() - $box[2]) / 2); |
|
107 | } |
|
108 | ||
109 | // draw text background |
|
110 | $textBackground = $label->getTextBackground(); |