Thanks for reporting, Alex. This is related to a known 
issue: https://code.google.com/p/googleappengine/issues/detail?id=12271

On Saturday, October 10, 2015 at 8:29:53 AM UTC-7, 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/f8ee2afe-39fd-4601-a00c-3a7090de3d24%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to