ok.. If I wanted to put text on an image.. say an exsisting image..
Code: Select all
<?php
header("Content-type: image/jpeg");
$im = imagecreate(400,30);
$white = imagecolorallocate($im, 255,255,255);
$black = imagecolorallocate($im, 0,0,0);
// Replace path by your own font path
imagettftext($im, 20, 0, 10, 20, $black, "/path/arial.ttf",
"Testing... Omega: Ω");
imagejpeg($im);
imagedestroy($im);
?>and if i'm correct this code creates an image with text on it.. it doesn't put text on an exsisting image..
anyway I am not asking for code I am just asking for some help:
how do I get these fonts?
I didn't understand the manual.