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

Bugfix: Fix parseLetterSpacing for decimal values #1293

Closed

Conversation

eKoopmans
Copy link
Contributor

parseLetterSpacing was returning zero for decimal values less than 1.

This was causing TextBounds to not use letterRendering on elements with non-zero letter-spacing.

niklasvh added a commit that referenced this pull request Dec 7, 2017
@niklasvh
Copy link
Owner

niklasvh commented Dec 7, 2017

Good find! I fixed the issue that was failing the tests (parseFloat only takes 1 argument) and added an example of this use case to the tests (166cbba).

@niklasvh niklasvh closed this Dec 7, 2017
@eKoopmans
Copy link
Contributor Author

Oops! Thanks for the fix.

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