Have you noticed the difference in line height between these two paragraphs on Safari and Chrome? Shouldn't the default line height be 1.0, representing the "natural" height of a particular font (where descenders from the line above do not clash with ascenders from the line below)? I've observed that when set to 1.0, descenders can get cut off by the line below, depending on the chosen font.
<p style="font:14pt/1.0 Times">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque maximus mi vel erat finibus, eu tincidunt vehicula quis eu odio. In vel nisi non odio consequat porta in eros, sit amet tincidunt nunc dictum eu. In rhoncus convallis dapibus.</p>
<p style="font:14pt Times">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque maximus mi vel erat finibus, eu tincidunt vehicula quis eu odio. In vel nisi non odio consequat porta in eros, sit amet tincidunt nunc dictum eu. In rhoncus convallis dapibus.</p>
I have integrated an HTML "web view" into my iOS app and wish to give users control over line spacing. I have found that using values like 1.2, 1.8, and 2.4 for single, one-and-a-half, and double spacing work best. Anything less than about 1.2 leads to overlapping lines.
In previous inquiries, some sources describe 1.2 as equivalent to normal
, which seems accurate.
My secondary concern is determining how to calculate at runtime (considering possible device variations) the necessary multiplier for line spacing to prevent overlap. Can I confidently rely on 1.2 as a universal standard?