This post represents a specific technical issue and would be better posted
to the public issue tracker
<http://code.google.com/p/google-appengine/issues/list>. Feel free to do
that, and your report will be triaged shortly. This forum is intended for
more general discussion of the platform and services. Stackoverflow
<http://stackoverflow.com> is also another place to get specific-issue
technical support. We monitor all three of these forums, although they have
different purposes.
On Saturday, October 10, 2015 at 11:29:53 AM UTC-4, Alex Kerr wrote:
>
> 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/8a16c0ec-a292-42bd-8ece-5795a54bb2f9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.