Hi,
I’m trying to output some text inside a rectangle. The script was working when I used imagestring() and the built in fonts. I needed larger fonts so I tried to access the TTF fonts with the imagettftext() function. The rectangle printed but didn’t contain any text.
// Change this defines to where Your fonts are stored
DEFINE("TTF_DIR","/usr/share/fonts/truetype/");
// Change this define to a font file that You know that You have
DEFINE("TTF_FONTFILE","arial.ttf");
imagettftext($im, 16, 0, 10, 20, $color,TTF_DIR.TTF_FONTFILE, $text);
I have the $color and $text set in code above.
Any thoughts on what I'm doing incorrectly?
thanks,
Doug