Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Calculation of line height based on font size

David Walther Birk Lauridsen edited this page Jul 9, 2014 · 2 revisions

This is the formula:

Line heigh t= 1,61803398875-((1/(2*1,61803398875))*(1-(500/(((FONTSIZE*16)*1,61803398875)*((FONTSIZE*16)*1,61803398875)))))

NB! 500 is the width - since the width is dynamic for ebooks this is a qualified estimation of a mean width. This can be changed.

image

From http://www.pearsonified.com/2011/12/golden-ratio-typography.php