Line height converter
Line height, also known as leading or line spacing, controls how far apart lines are in a paragraph. You can typically control it by setting a certain percentage value, but some programs use a different method for converting this percentage into a concrete measurement than most. This program converts between them.
The metrics-based method calculates the distance between baselines
as line height × (ascent + descent)
,
while the em-based method uses line height × em height
.
Some programs calculate baseline distances based on cap height,
but I haven’t included that here.