-
Notifications
You must be signed in to change notification settings - Fork 28.9k
Add variable font axes to TextStyle #100978
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
Conversation
/// Some fonts are variable fonts that can generate multiple font faces based | ||
/// on the values of customizable attributes. For example, a variable font | ||
/// may have a weight axis that can be set to a value between 1 and 1000. | ||
/// [FontVariation]s can be used to select the values of these design axes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please include a doc comment example that shows using this API for some commonly available font.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added an example
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code LGTM.
If we want to land this to make branch cut I think it's probably fine, we could follow up on docs/examples in a separate PR. But adding an example would really help here and shouldn't be too complicated.
fbbc2b6
to
ba56034
Compare
ba56034
to
0e3958b
Compare
0e3958b
to
5ad8067
Compare
See #87291