W3C home > Mailing lists > Public > www-style@w3.org > March 1999

font-size and line-height

From: Erik van der Poel <erik@netscape.com>
Date: Sat, 20 Mar 1999 11:15:04 -0800
Message-ID: <36F3F3B8.A617BF67@netscape.com>
To: www-style@w3.org
CSS2, section 10.8.1:

  When the 'line-height' value is less than the font size, the final
  inline box height will be less than the font size and the rendered
  glyphs will "bleed" outside the box.

Section 15.2.1:

  Font size
    The font size refers to the size of the font from baseline to
    baseline, when set solid (in CSS terms, this is when the
    'font-size' and 'line-height' properties have the same value).

Section 10.8.1 seems to imply that the font size is from the top of the
glyph with the tallest bounding box height to the bottom of the glyph
with the lowest bounding box edge. Does this mean that the font size
includes the accents (e.g. acute accent found in some European
languages)?

Or should the implementation choose to use a baseline-to-baseline
distance provided by the font designer (if any)?

Erik van der Poel
Netscape
Received on Saturday, 20 March 1999 14:19:39 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:53:58 GMT