By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,967 Members | 1,710 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,967 IT Pros & Developers. It's quick & easy.

ImageTTFText can't find/open ttf fonts

P: n/a
bof
I'm attempting to use ImageTTFText to render text to an image, I can get
it to work if I

a) specify the full font path
b) switch off anti-aliasing
c) specify an OpenType font (e.g. arial.ttf)

If I specify a TrueType font (e.g. futura.ttf) I get an error message
"Warning: imagettftext(): Could not find/open font in c:\filepath"

phpinfo() reports:
PHP Version 4.3.4
GD Version bundled (2.0.15 compatible)

also running under apache built from 2.0.47 under Win XP
In summary: I can get OpenType fonts to render, any advice on how to get
TrueType fonts working?
MTIA, if replying by email please use address in sig
--
bof at bof dot me dot uk
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
bof
In message <ju**************@invalid.domain>, bof
<no*********@hotmail.com> writes
I'm attempting to use ImageTTFText to render text to an image, I can
get it to work if I

a) specify the full font path
b) switch off anti-aliasing
c) specify an OpenType font (e.g. arial.ttf)

If I specify a TrueType font (e.g. futura.ttf) I get an error message
"Warning: imagettftext(): Could not find/open font in c:\filepath"

phpinfo() reports:
PHP Version 4.3.4
GD Version bundled (2.0.15 compatible)

also running under apache built from 2.0.47 under Win XP
In summary: I can get OpenType fonts to render, any advice on how to
get TrueType fonts working?

Finally resolved this by using the DOS path name to the font and all now
appears OK; it must have just been chance that the fonts I chose to test
on that worked happened to have a path name that was the same in Windows
and DOS

--
bof at bof dot me dot uk
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.