Sketch tip: Set a relative line-height for text

Christian Krammer
Design + Sketch
Published in
2 min readOct 29, 2015

by Christian Krammer from sketchtips.info

By default the line-height of text in Sketch (“Spacing > Line” in the Inspector) is relative to the font size. So if you resize the text its line-height grows or shrinks according to the size. But the moment you change the line-height manually this relationship is gone and it remains at the same value, which is independent from the size. To restore this behaviour just empty the “Spacing > Line” field in the Inspector and it goes back to “auto”.

Quote by Charles Eames from http://quotesondesign.com

However there is no way to set another relative line-height than the default one. But there is a trick: You can use the “Scale” option from the Toolbar to resize text and keep all of its properties. So if you have text with a font-size of “16px” and a line-height of “32” (1.5) and want to change it to “21px”, then select “Scale” from the Toolbar, enter “131 %” (21/16 = 1.3125 * 100%, Sketch doesn’t allow decimal numbers here) and you get text that’s roughly “21px” with a line-height of “42”. Not ideal, but still way better then the constant need to adapt the line-height if you resize text.

Follow sketchtips.info on Twitter

--

--

Christian Krammer
Design + Sketch

Program/ project/ product manager, Scrum Master, father, and husband. Addicted to reading, spirituality, and meditation. Proud author of The Sketch Handbook.