imagettftext() path to font

Alles, was PHP betrifft, kann hier besprochen werden.

imagettftext() path to font

Postby shuguesebookers » 10. March 2009 11:57

Hello,

I've discovered this marvelous method imagettftext()
http://uk3.php.net/manual/en/function.imagettftext.php
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 "http://www.mysite.com/data/arial.ttf", it doesn't work.
I must put my font in an other folder.

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

Re: imagettftext() path to font

Postby Wiedmann » 10. March 2009 12:26

"http://www.mysite.com/data/arial.ttf", it doesn't work.

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


Return to PHP

Who is online

Users browsing this forum: No registered users and 20 guests