|
Posted by Rik Wasmus on 10/13/07 23:17
On Fri, 12 Oct 2007 09:57:16 +0200, <jimbo@012.net.il> wrote:
> I am using imagettftext and imagefttext on my machine locally and
> having no problems. BUT my server can't find the fonts. I am feeding
> both functions the bare fontfile name with no extensions. My
> understanding of the docs ;>) is that php will handle this
> transparently from v5.?
The docs say:
[quote]
Depending on which version of the GD library PHP is using, when fontfile
does not begin with a leading / then .ttf will be appended to the filename
and the library will attempt to search for that filename along a
library-defined font path.
[/quote]
> I'm not sure in the case of ttf but the documentation is very explicit
> with freetype. The interpreter or whatever will add the extension and
> search on a predefined path. In any case both funtions work locally
> and neither work on my site.
So, what is the defined path for fontfiles your GD library on the server
is using, and is the font there?
(BTW: I usually don't bother with that, I just include the fontfile
somewhere handy in the sourcetree and include it by full path, saves a lot
of hassle).
--
Rik Wasmus
Navigation:
[Reply to this message]
|