Re: font-size and line-height

On Sat, 20 Mar 1999 11:15:04 -0800, you wrote:

>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)?

On a few occasions the text of the CSS1 spec gives better explanation of
things. From the CSS1 section on "Terminology"

  font size
    The size for which a font is designed. Typically, the size
    of a font is approximately equal to the distance from the bottom
    of the lowest letter with a descender to the top of the tallest
    letter with an ascender and (optionally) with a diacritical mark.

Some illustrations here might be of interest...
  http://css.nu/articles/typograph1-en.html
...to clarify the meaning of this?

-- 
Jan Roland Eriksson <rex@css.nu> .. <URL:http://css.nu/>

Received on Sunday, 21 March 1999 15:45:57 UTC