You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a from_line_height constructor function to TextFont. (#20335)
# Objective
`TextFont` has `from_font` and `from_font_size` constructors but is
missing one for line height.
## Solution
* Added a `from_line_height` constructor function to `TextFont`.
* Also added `From<Handle<Font>>` and `From<LineHeight>` impls.
We could also add a `From<f32>` for font size but I thought it might be
confusing. At some some point we want to add responsive text size
support, can do it then.
0 commit comments