Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions libchart/classes/view/text/Text.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Text {
/**
* Creates a new text drawing helper.
*/
public function Text() {
public function __construct() {
$baseDir = dirname(__FILE__) . "/../../../";

// Free low-res fonts based on Bitstream Vera <http://dejavu.sourceforge.net/wiki/>
Expand Down Expand Up @@ -126,4 +126,4 @@ public function printDiagonal($img, $px, $py, $color, $text) {
imagettftext($img, $fontSize, $angle, $px, $py, $color->getColor($img), $fontFileName, $text);
}
}
?>
?>