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.
1738
1757
/// \default 0
1739
1758
inproperty <length> letter-spacing;
1759
+
/// The line height as a unitless multiple of the font size or as a percentage.
1760
+
/// Values less than or equal to zero use the natural line height.
1761
+
/// The CSS `normal` keyword and length values aren't supported.
1762
+
/// \default 0
1763
+
inproperty <float> line-height;
1740
1764
inproperty <length> width;
1741
1765
inproperty <length> height;
1742
1766
/// The height of the page used to compute how much to scroll when the user presses page up or page down.
0 commit comments