Skip to content

Commit

Permalink
Fixes #62
Browse files Browse the repository at this point in the history
  • Loading branch information
claviska committed Mar 12, 2015
1 parent 0274cf4 commit 8a3aed6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/abeautifulsite/SimpleImage.php
Original file line number Diff line number Diff line change
Expand Up @@ -1002,6 +1002,8 @@ function text($text, $font_file, $font_size = 12, $color = '#000000', $position
}

// Add the text
imagesavealpha($this->image, true);
imagealphablending($this->image, true);
imagettftext($this->image, $font_size, $angle, $x, $y, $color, $font_file, $text);

return $this;
Expand Down

0 comments on commit 8a3aed6

Please sign in to comment.