estoy intentando trabajar en mi ubuntu con php5 y las gd... todo anda de maravillas hasta que tengo que usar la función imagettftext de PHP5.
el archivo:
Código PHP:
<?
$f_ancho = 350;
$f_alto = 35;
$img = imagecreate($f_ancho, $f_alto);
imagecolorallocate($img, 255, 255, 255);
$c_texto = imagecolorallocate($img, 138, 190, 77);
$fuente = 'amaze.ttf';
imagettftext($img, 21, 0, 2, 26, $c_texto, $fuente, $_GET['s']);
header('Content-type: image/png');
imagepng($img);
imagedestroy($img);
?>
Código:
si alguien sabe como solucionarlo, les agradeceré Warning: imagettftext() [function.imagettftext]: Could not find/open font in /var/www/uobarcode/txt2img.php on line 11