Skip to content

Calculating strWidth in drawStringMaxWidth correctly #62

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

Merged
merged 1 commit into from
Jul 9, 2016

Conversation

FWeinb
Copy link
Collaborator

@FWeinb FWeinb commented Jul 9, 2016

We had a bug in the calculation of the strWidth by always assuming it would be 0 after drawing. But that is not the case because we prefer to break on [space] or - thus we have to calculate the strWidth to be the width of the chars not drawn.

@FWeinb FWeinb merged commit 59542b4 into master Jul 9, 2016
@FWeinb FWeinb deleted the fix-drawStringMaxWidth-bug branch July 9, 2016 17:04
@simap
Copy link

simap commented Jul 20, 2016

thanks!

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.

2 participants