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
Expose a font-size-relative line height on Text, TextInput, and StyledText.
Apply it consistently in Parley, testing, and software-renderer layout, including measurement, elision, and cursor positioning.
Document the property and cover the layout and hit-testing behavior.
ChangeLog: Add line-height to Text, TextInput, and StyledText.
/// The default font size used to render the text, when no size is specified via markup. If unset (or zero), the value falls back to the enclosing `Window`'s `default-font-size`.
749
763
inproperty <length> default-font-size;
764
+
/// The line height as a unitless multiple of the font size or as a percentage.
765
+
/// Values less than or equal to zero use the natural line height.
766
+
/// The CSS `normal` keyword and length values aren't supported.
/// The letter spacing allows changing the spacing between the glyphs. A positive value increases the spacing and a negative value decreases the distance.
1742
1761
/// \default 0
1743
1762
inproperty <length> letter-spacing;
1763
+
/// The line height as a unitless multiple of the font size or as a percentage.
1764
+
/// Values less than or equal to zero use the natural line height.
1765
+
/// The CSS `normal` keyword and length values aren't supported.
1766
+
/// \default 0
1767
+
inproperty <float> line-height;
1744
1768
inproperty <length> width;
1745
1769
inproperty <length> height;
1746
1770
/// The height of the page used to compute how much to scroll when the user presses page up or page down.
0 commit comments