imagettftext() path to font

Alles, was PHP betrifft, kann hier besprochen werden.

imagettftext() path to font

Postby shuguesebookers » 10. March 2009 11:57


I've discovered this marvelous method imagettftext()
who allows a preview of a TTF font.

One problem : it only works when the font is in the same folder than the script.
"arial.ttf", when "", it doesn't work.
I must put my font in an other folder.

Thanks for helping me, Sylvain.
Posts: 3
Joined: 13. February 2009 11:02

Re: imagettftext() path to font

Postby Wiedmann » 10. March 2009 12:26

"", it doesn't work.

Correct, because that's a URI for a webbrowser and not a filesystem path.
AF Moderator
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Return to PHP

Who is online

Users browsing this forum: No registered users and 4 guests