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