Font functions assume file system access to read font files - not available in AppEngine or Heroku
GoogleCodeExporter opened this issue · comments
What steps will reproduce the problem?
In environments like AppEngine or Heroku, we can't rely on file system access
being available to the web app always. Trying to use fonts gives go runtime
error of unable to access file resource
What is the expected output? What do you see instead?
If we can have generic versions of the Font functions that can be passed font
file data as a byte slice OR a Reader, we can use the font functions in
environments where file access is not available.
Original issue reported on code.google.com by srina...@gmail.com
on 17 Nov 2013 at 4:21
Try using RegisterFont function.
see example of use here:
https://github.com/skelterjohn/go.uik/blob/master/fonts.go
Re-open the bug if you need more support
Thanks
Original comment by legoff.l...@gmail.com
on 20 Nov 2013 at 3:49
- Changed state: WontFix