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

Fix Font::measure and Text widget #51

Merged
merged 1 commit into from
Jun 14, 2019
Merged

Fix Font::measure and Text widget #51

merged 1 commit into from
Jun 14, 2019

Conversation

hecrj
Copy link
Owner

@hecrj hecrj commented Jun 14, 2019

Fixes #43.

The fix consists in using the brand new GlyphBrush::glyph_bounds method instead of GlyphBrush::pixel_bounds (see alexheretic/glyph-brush#68). The Text widget measure function can directly return the result now!

@hecrj hecrj added the bug Something isn't working label Jun 14, 2019
@hecrj hecrj added this to the 0.3.0 milestone Jun 14, 2019
@hecrj hecrj merged commit a4ca726 into master Jun 14, 2019
@hecrj hecrj deleted the fix/font-measure branch June 14, 2019 10:37
@hecrj hecrj self-assigned this Jun 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Font::measure returns wrong values
1 participant