Soporte Tipe 1 en W2K...

From: Date: Wed, 24 Apr 2002 18:05:25 +0000
Subject: Soporte Tipe 1 en W2K...
Groups: php.general.es 
Request: Send a blank email to general-es+get-21860@lists.php.net to get a copy of this message
Tengo lo siguiente: <? if ($REQUEST_METHOD <> "POST") { ?> <form action="ttf.php" method="post"> <input name="Texto" type="text" value="Introduce el texto tarugo:"> <input type="submit" value="ok"> </form> <? } else { ?> <? Header("Content-type: image/png"); //Header("Content-type: image/jpg"); $im = imagecreate(400, 30); $black = ImageColorAllocate($im, 0, 0, 0); $white = ImageColorAllocate($im, 255, 255, 255); ImageTTFText ($im, 20, 0, 10, 20, $white, "/tipografias/winnt/arial.ttf", "$Texto"); ImagePNG ($im, 'imagen.png'); ImagePNG ($im); ImageDestroy ($im); ?> <? } ?> Y funciona sin problemas... pero si quiero esto otro... <? if ($REQUEST_METHOD <> "POST") { ?> <form action="ttf.php" method="post"> <input name="Texto" type="text" value="Introduce el texto tarugo:"> <input type="submit" value="ok"> </form> <? } else { ?> <? Header("Content-type: image/png"); //Header("Content-type: image/jpg"); $im = imagecreate(400, 30); $black = ImageColorAllocate($im, 0, 0, 0); $white = ImageColorAllocate($im, 255, 255, 255); $font = imagepsloadfont ("/Tipografias/Navarre/Navan___.pfb"); imagepstext ($im, "Testing... It worked!", $font, 32, $white, $black, 32, 32); imagepsfreefont ($font); ImagePNG ($im, 'imagen.png'); ImagePNG ($im); ImageDestroy ($im); ?> <? } ?> Da el siguiente error: ImagePs[...]: No T1lib support in this PHP build.... Vale, sé que tengo que incluir el soporte T1lib... que debería de ser una dll al estilo del pdflib.dll que se pone al alcance del php y listo... pero no, alquien sabe algo del tema... por supuesto que todo se arreglaria compilando, pero es un trago que me gustaria evitarme ;-) Saludos.

« previous php.general.es (#21860) next »