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
v2.8.5 and main
go version
go run github.com/vzx/ebitengine-text-v2-newlines@main
On the right (v2), each line of text should appear on a separate line, just like on the left (v1).
Lines of text are written on the same line, overwriting each other.
No response
The text was updated successfully, but these errors were encountered:
Specify LineSpacing.
https://pkg.go.dev/github.com/hajimehoshi/ebiten/[email protected]/text/v2#LayoutOptions
Sorry, something went wrong.
Thank you very much for responding so quickly.
Then I would like to suggest that this line of documentation on Draw be revised:
Draw
ebiten/text/v2/layout.go
Line 69 in 52be385
// The '\n' newline character puts the following text on the next line.
And/or perhaps an amendment of the example https://ebitengine.org/en/examples/font.html
Since I was unable to intuitively find this option.
text/v2: improve Draw comments for multiline rendering
f0a335d
Updates #3169
Makes sense. Thank you for pointing this out!
No branches or pull requests
Ebitengine Version
v2.8.5 and main
Operating System
Go Version (
go version
)What steps will reproduce the problem?
What is the expected result?
On the right (v2), each line of text should appear on a separate line, just like on the left (v1).
What happens instead?
Lines of text are written on the same line, overwriting each other.
Anything else you feel useful to add?
No response
The text was updated successfully, but these errors were encountered: