problemas con funciones ImageTTFText() e ImageTTFBBox()
| From: | Ing . Wilson Vélez | Date: | Tue, 01 Jun 2004 22:17:08 +0000 |
| Subject: | problemas con funciones ImageTTFText() e ImageTTFBBox() | ||
| Groups: | php.general.es | ||
| Request: | Send a blank email to general-es+get-49099@lists.php.net to get a copy of this message | ||
Estoy utilizando las funciones de manejo de imágenes en Plataforma Windows (PHP 4.3.4, Apache
2.0.49), pero no me funcionan, específicamente las siguientes:
ImageTTFText() y la ImageTTFBBox().
ME lanzan un mensaje de error indicándome que no es factible abrir la fuente TrueType a pesar de
que esta se encuentra en el directorio que le especifico.
Por ejemplo en el código siguiente:
<?php
Header("Content-type: image/gif");
$im = imagecreate(400,30);
$black = ImageColorAllocate($im, 0,0,0);
$white = ImageColorAllocate($im, 255,255,255);
ImageTTFText($im, 20, 0, 10, 20, $white, "C:\htdocs\img\arial.ttf", "Testing...
Omega: Ω");
ImageGif($im);
ImageDestroy($im);
?>
el mensaje de error es:
Warning: Could not find/open font in C:\htdocs\img\gif.php on line 6
Que error existe