ImageTTFText just just does not work for me.
Red Hat Linux 7.3 2.96-110
PHP 4.3.4
GD Version bundled (2.0.15 compatible)
FreeType Support enabled
FreeType Linkage with TTF library
No errors are output, but the text just does not show up on the image.
Any ideas?
I downloaded a TTF from a linux font site, and set permissions on the font to allow the server to access it.
$font when output has the full path to the font.
Driving me nuts...
<?php
if($go){
header ("Content-type: image/png");
$im = imagecreate (600, 600);
$black = imagecolorallocate ($im, 0, 0, 0);
$white = imagecolorallocate ($im, 255, 255, 255);
$font = realpath('metropol.ttf');
echo $font;
ImageTTFText ($im, 20, 10, 10, 20, $white, $font,"FONT HIP HIP");
imagepng ($im);
imagedestroy($im);
}
?>
<img src="testgd.php?go=True">