Bug #17717 Updated: Error: could not find/open font
ID: 17717
Updated by: webmaster@tsn.dk
Reported By: enrico.kliesch@mind-building.de
Status: Bogus
Bug Type: GD related
Operating System: Windows 2000
PHP Version: 4.2.1
New Comment:
The correct way is
$font = "/WINNT/Fonts/arial.ttf";
and sniper is right, this is a GDlib bug, and not PHP related..
It's a shame GDlib is never updated
Previous Comments:
------------------------------------------------------------------------
[2002-06-11 18:50:44] enrico.kliesch@mind-building.de
I also tried:
$font="./arial" //without .ttf
Enrico
------------------------------------------------------------------------
[2002-06-11 18:34:42] sniper@php.net
Please don't open ANOTHER report about exactly same issue.
Use the 'Advaced search' to find the other ones about this
and add your comment there.
------------------------------------------------------------------------
[2002-06-11 18:23:44] enrico.kliesch@mind-building.de
When I use the function:
ImageTTFText($im, $size, $angle, $x, $y, $black, $font, $text);
I see the error: Could not open/find font.
I tried to use a font the following things:
- $font="../arial.ttf"; //the font was on directory above
- $font="arial.ttf"; //the font was in the same dir
- $font="f:\\www\\script\\arial.ttf"; //the real path
- $font="./arial.ttf"; //in the same dir
in the Version 4.2.0 it works but i thougt the gd2 lib is better in
4.2.1 than 4.2.0.
Enrico
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=17717&edit=1
Thread (5 messages)