Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Font functions assume file system access to read font files - not available in AppEngine or Heroku #28

Closed
GoogleCodeExporter opened this issue Mar 16, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

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

@GoogleCodeExporter
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant