|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-06-11 18:23 UTC] enrico dot kliesch at mind-building dot 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 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 02:00:01 2025 UTC |
I found the soulution in another question. You first have to define the GD font path: putenv('GDFONTPATH=f:\www\radioshow\fonts'); then it works with: ImageTTFText($im, $size, $angle, $x, $y, $black, $font, $text);