Hi! I’m trying to understand how Text Line height property works in Sparkle.
- What does the number represent?
- If the font size is in pixels… How do we calculate the line height in pixels ?
Here is an example, and why it is confusing:
-
I’ve set the Font Size to 62 (I guess these are px) and the Line height to 1 (in Sparkle)
-
In the preview, if I inspect the CSS property of the element I can see that the font size is indeed 62px, but the line-height is 1.227 (in pixels this means 76.074px)
I want to set the Line height to be the same as the Font size … How is the line height calculated?