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

Newline character support and truncated line sizing improvement. #1193

Merged
merged 4 commits into from
Oct 30, 2018

Conversation

wiseoldduck
Copy link
Member

As we use the returned size for sizeThatFits, we need to make sure we don't truncate text and then return the smaller size (leading to even more text being truncated).

If a newline character takes the text outside of the bounds, that text should be truncated.

Kevin Smith and others added 2 commits October 17, 2018 18:04
For purposes of truncating text, respect explicit newlines.
Don't size to smaller than truncated line width unless we have to.
@maicki maicki merged commit be02143 into TextureGroup:master Oct 30, 2018
mikezucc pushed a commit to mikezucc/Texture that referenced this pull request Nov 7, 2018
…tureGroup#1193)

* Newline character support and truncated line sizing improvement.

For purposes of truncating text, respect explicit newlines.
Don't size to smaller than truncated line width unless we have to.

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

Successfully merging this pull request may close these issues.

None yet

2 participants