![]() Mailinglisten-Archive |
Hallo Liste, ich habe ein Problem mit der Verwendung von TTF-Fonts unter W(MSIS)MP. Script: 1 <?php 2 //Header ("Content-type: image/png"); 3 $im = imagecreate (400, 30); 4 $black = ImageColorAllocate ($im, 0, 0, 0); 5 $white = ImageColorAllocate ($im, 255, 255, 255); 6 ImageTTFText ($im, 20, 0, 10, 20, $white, "Arial.ttf", "Testing... Omega: Ω"); 7 // ImagePNG ($im); 8 ImageDestroy ($im); ?> Ausgabe des Scriptes: Warning: Could not find/open font in .......\viewPic.php3 on line 6 Ich habe PHP4.03 installiert und phpinfo() gibt zur�ck: GD Support enabled GD Version 1.6.2 or higher FreeType Support enabled FreeType Linkage with TTF library PNG Support enabled JPG Support enabled WBMP Support enabled Der Font Arial.ttf befindet sich im gleichen Verzeichnis wie das Script. Brauche ich zus�tzlich noch die ttf-lib oder ist die nur f�r UNIXe wichtig? Ohne ImageTTFText funktioniert das PHP-Script (nat�rlich erst nachdem die Kommentare entfernt wurden) uund gibt ein Bild zur�ck. Vielen Dank
php::bar PHP Wiki - Listenarchive