Skip to content

Support other fontweights #18

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

davidmartos96
Copy link

@davidmartos96 davidmartos96 commented Feb 20, 2024

Fixes #17
When using a textStyle with a fontWeight different than bold or normal, the TextPainter doesn't measure the text correctly.

This PR makes sure the textPainter uses the same fontWeight and font family. When using a different font family, the measurement can also be incorrect, so we can merge the textStyle with the DefaultTextStyle in Flutter.

@fondraco
Copy link

fondraco commented Jun 6, 2024

Could you please release this? @mingsnx

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.

Text is slightly cropped inside the AnimatedDigitWidget
2 participants