-
Notifications
You must be signed in to change notification settings - Fork 12
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
Add lineWidth support to RichText #998
Comments
A few notes for the review
@jonathanolson please review. |
I'm not seeing artifacts on Chrome/macOS. Can you take a screenshot or note reproduction instructions? I'm also not sure there is anything we can do in that case. (Can you also try Main commit looks great! |
Imo, stroking a font (in general) looks lousy. You'd be better off filling bold text with a color that looks good on each sphere, or putting a translucent background behind filled text. |
That sounds good. I will look into those options over in phetsims/inverse-square-law-common#79.
I don't know what else there would be to do. This artifact only occurs with a very thin lineWidth, and not on all browsers. I feel alright about leaving it up to the implementer to choose a format that looks good, and doesn't have these artifacts. Closing |
After investigating on my own in phetsims/inverse-square-law-common#79, and then discussing with @jonathanolson, it looks like RichText doesn't currently support lineWidth. We decided to add it almost identically to how the stroke feature is implemented. I'll take a look.
The text was updated successfully, but these errors were encountered: