Permalink
Browse files

Replace "imageft*" calls with "imagettf*"

  • Loading branch information...
stil committed Jun 4, 2017
1 parent 9f9a19a commit f83f4351968849dad74ac3d02be9201d132d7591
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Box.php
View
@@ -384,7 +384,7 @@ protected function drawFilledRectangle(Rectangle $rect, Color $color)
protected function calculateBox($text)
{
return imageftbbox($this->getFontSizeInPoints(), 0, $this->fontFace, $text);
return imagettfbbox($this->getFontSizeInPoints(), 0, $this->fontFace, $text);
}
protected function strokeText($x, $y, $text)
@@ -400,7 +400,7 @@ protected function strokeText($x, $y, $text)
protected function drawInternal(Point $position, Color $color, $text)
{
imagefttext(
imagettftext(
$this->im,
$this->getFontSizeInPoints(),
0, // no rotation

0 comments on commit f83f435

Please sign in to comment.