Warning: session_start(): Session cannot be started after headers have already been sent in /home/tvrreohg/public_html/manga.php on line 13
document->getHeight();
$this->y = $height;
if (isset($attributes['x'])) {
$width = $this->document->getWidth();
$this->x = $this->convertSize($attributes['x'], $width);
}
if (isset($attributes['y'])) {
$this->y = $height - $this->convertSize($attributes['y'], $height);
}
$this->document->getSurface()->transform(1, 0, 0, -1, 0, $height);
}
public function end()
{
$surface = $this->document->getSurface();
$x = $this->x;
$y = $this->y;
$style = $surface->getStyle();
$surface->setFont($style->fontFamily, $style->fontStyle, $style->fontWeight);
switch ($style->textAnchor) {
case "middle":
$width = $surface->measureText($this->text);
$x -= $width / 2;
break;
case "end":
$width = $surface->measureText($this->text);
$x -= $width;
break;
}
$surface->fillText($this->getText(), $x, $y);
}
protected function after()
{
$this->document->getSurface()->restore();
}
public function appendText($text)
{
$this->text .= $text;
}
public function getText()
{
return trim($this->text);
}
}