Hi,
I'm trying to use a font with PHP's imagettftext() and no matter what I do
I get the "Warning: imagettftext(): Invalid font filename" error. The font
file is at an external public URL - specifying this directly causes the
error. So I then used file_get_contents() and file_put_contents() to put a
copy of the file on Cloud Storage (which copied fine) and access with the
standard 'gs://' file path in my imagettftext() call. This also causes the
error. I've reviewed the PHP docs and tried every combination of filepath I
can think of including putenv('GDFILEPATH='.[my gs:// path]) or putting a /
or // in front of my gs:// filepath. Nothing works. putenv and getenv don't
seem to work at all anyway!
I also tried using the temp in memory drive on GAE ('vfs://') with same
error. (And using 'vfs://' gives an error that it's read only which should
not be the case!?)
Looks like imagettftext() can only be used with read only fonts deployed
statically with the app (which I can't do for various reasons - I have to
access them dynamically).
Anyone got any ideas!?
Many thanks,
Alex
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-appengine/77766f13-bdec-4872-87af-0fd061e6fdea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.