Ver Mensaje Individual
  #1 (permalink)  
Antiguo 11/12/2006, 15:01
Avatar de nachopro
nachopro
 
Fecha de Ingreso: noviembre-2003
Ubicación: Haedo, Bs. As.
Mensajes: 290
Antigüedad: 20 años, 5 meses
Puntos: 2
php5-gd + ubuntu = error de imagettftext

estimados
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($img255255255);

$c_texto imagecolorallocate($img13819077);
$fuente 'amaze.ttf';

imagettftext($img210226$c_texto$fuente$_GET['s']);

header('Content-type: image/png');
imagepng($img);
imagedestroy($img);
?>
esto me tira el siguiente error en mi ubuntu 6.06:
Código:
Warning: imagettftext() [function.imagettftext]: Could not find/open font in /var/www/uobarcode/txt2img.php on line 11
si alguien sabe como solucionarlo, les agradeceré