CSS snippet
p {
font-size: 1em;
line-height: calc(1.618em + (1ex - 1ch));
}
Line height is based on the font-size (1.618em
), the typeface’s x-height (1ex
) and character width (1ch
) so we’re taking the typeface metrics and proportions into account to typeset.
Note: Not implying those are the ideal line-heights for those typefaces. Just trying to experiment with vertical rhythm based on the typeface in use. There obviously could be a better calc formula (golden ratio and shit).
All values computed for font-size: 16px;
.
font-family: 'Abril Text';
line-height: 24.38399887084961px;
ratio: 1.5239999294281006;
font-family: Adelle;
line-height: 24.92799949645996px;
ratio: 1.5579999685287476;
font-family: 'Adelle Sans';
line-height: 25.1200008392334px;
ratio: 1.5700000524520874;
font-family: 'Adobe Text Pro';
line-height: 25.280000686645508px;
ratio: 1.5800000429153442;
font-family: 'Adriane Text';
line-height: 24.128000259399414px;
ratio: 1.5080000162124634;
font-family: 'Arno Pro';
line-height: 24.639999389648438px;
ratio: 1.5399999618530273;
font-family: Calluna;
line-height: 24.11199951171875px;
ratio: 1.5069999694824219;
font-family: Edita;
line-height: 24.6560001373291px;
ratio: 1.5410000085830688;
font-family: Eskapade;
line-height: 25.1200008392334px;
ratio: 1.5700000524520874;
font-family: 'Essay Text';
line-height: 24.512001037597656px;
ratio: 1.5320000648498535;
font-family: 'Dagny Pro';
line-height: 24.591999053955078px;
ratio: 1.5369999408721924;
font-family: 'Tisa Pro';
line-height: 23.392000198364258px;
ratio: 1.4620000123977661;
font-family: 'Tisa Sans Pro';
line-height: 23.808000564575195px;
ratio: 1.4880000352859497;
font-family: 'Futura PT';
line-height: 23.440000534057617px;
ratio: 1.465000033378601;
font-family: Grad;
line-height: 24.895999908447266px;
ratio: 1.555999994277954;
font-family: 'Kepler Std';
line-height: 25.392000198364258px;
ratio: 1.5870000123977661;
font-family: Lexia;
line-height: 25.328001022338867px;
ratio: 1.5830000638961792;
font-family: 'Museo Sans';
line-height: 23.93600082397461px;
ratio: 1.496000051498413;
font-family: 'Museo Slab';
line-height: 24.064001083374023px;
ratio: 1.5040000677108765;
font-family: 'Proxima Nova';
line-height: 23.823999404907227px;
ratio: 1.4889999628067017;
font-family: 'Servus Slab';
line-height: 24.27199935913086px;
ratio: 1.5169999599456787;
font-family: 'Warnock Pro';
line-height: 24.895999908447266px;
ratio: 1.555999994277954;
font-family: -apple-system;
line-height: 24.54425048828125px;
ratio: 1.5340156555175781;
font-family: Athelas;
line-height: 24.144001007080078px;
ratio: 1.5090000629425049;
font-family: 'Iowan Old Style';
line-height: 24.65362548828125px;
ratio: 1.5408515930175781;
font-family: Charter;
line-height: 24.68487548828125px;
ratio: 1.5428047180175781;
font-family: Arial;
line-height: 25.28643798828125px;
ratio: 1.5804023742675781;
font-family: Helvetica;
line-height: 25.35675048828125px;
ratio: 1.5847969055175781;
font-family: Times;
line-height: 25.06768798828125px;
ratio: 1.5667304992675781;
font-family: Avenir;
line-height: 24.479999542236328px;
ratio: 1.5299999713897705;
font-family: Cambria;
line-height: 24.49737548828125px;
ratio: 1.5310859680175781;
font-family: 'American Typewriter';
line-height: 23.695999145507813px;
ratio: 1.4809999465942383;
font-family: 'Avenir Next';
line-height: 24.09600067138672px;
ratio: 1.50600004196167;
font-family: Baskerville;
line-height: 24.28643798828125px;
ratio: 1.5179023742675781;
font-family: 'Chaparral Pro';
line-height: 24.2239990234375px;
ratio: 1.5139999389648438;
font-family: Cochin;
line-height: 23.84000015258789px;
ratio: 1.4900000095367432;
font-family: Didot;
line-height: 23.855998992919922px;
ratio: 1.4909999370574951;
font-family: Georgia;
line-height: 23.77081298828125px;
ratio: 1.4856758117675781;
font-family: 'Gill Sans';
line-height: 25.07550048828125px;
ratio: 1.5672187805175781;
font-family: 'Hoefler Text';
line-height: 23.119998931884766px;
ratio: 1.4449999332427979;
font-family: 'Minion Pro';
line-height: 25.200000762939453px;
ratio: 1.5750000476837158;
font-family: 'Myriad Pro';
line-height: 25.423999786376953px;
ratio: 1.5889999866485596;
font-family: 'Open Sans';
line-height: 25.30206298828125px;
ratio: 1.5813789367675781;
font-family: Palatino;
line-height: 25.42706298828125px;
ratio: 1.5891914367675781;
font-family: Optima;
line-height: 24.559999465942383px;
ratio: 1.534999966621399;
font-family: Roboto;
line-height: 25.33331298828125px;
ratio: 1.5833320617675781;
font-family: 'Roboto Condensed';
line-height: 26.51300048828125px;
ratio: 1.6570625305175781;
font-family: 'Source Sans Pro';
line-height: 25.711999893188477px;
ratio: 1.6069999933242798;
font-family: 'Source Serif Pro';
line-height: 25.472000122070313px;
ratio: 1.5920000076293945;
font-family: Verdana;
line-height: 24.44268798828125px;
ratio: 1.5276679992675781;
font-family: Vollkorn;
line-height: 23.631999969482422px;
ratio: 1.4769999980926514;
font-family: 'Adobe Garamond Pro';
line-height: 24.239999771118164px;
ratio: 1.5149999856948853;
font-family: 'Adobe Caslon Pro';
line-height: 24.624000549316406px;
ratio: 1.5390000343322754;
Actually, you can somehow get far more pleasing results with
As far as I’m concerned, as long as the max-width is character based.