We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Now rendering a text is a little troublesome with text/v2 to be honest. So, what about having a utility function like this?
func DrawText(dst *ebiten.Image, fontFilePath string, text string, x, y int, fontSize int, clr color.Color) func DrawTextWithFileSystem(dst *ebiten.Image, fontFilePath string, fs fs.FS, text string, x, y int, fontSize int, clr color.Color)
This is inspired by a Reddit post https://www.reddit.com/r/golang/comments/1exl1bi/my_experience_with_ebitengine_and_raylibgo_gmtk/
No response
The text was updated successfully, but these errors were encountered:
DrawText without a file system argument is not portable. NewImageFromFile is not defined on mobiles, and I am not confident this situation is fine.
DrawText
NewImageFromFile
Sorry, something went wrong.
No branches or pull requests
Operating System
What feature would you like to be added?
Now rendering a text is a little troublesome with text/v2 to be honest. So, what about having a utility function like this?
This is inspired by a Reddit post https://www.reddit.com/r/golang/comments/1exl1bi/my_experience_with_ebitengine_and_raylibgo_gmtk/
Why is this needed?
No response
The text was updated successfully, but these errors were encountered: