Re: font-size and accents, again

On Sat, 27 Nov 1999 00:13:51 -0800, (Erik van der
Poel) wrote:
> Erik van der Poel wrote:
> > 
> > Now I have a question about aligning text vertically inside its inline
> > box. Is the implementor supposed to use the max ascent (i.e. including
> > any protruding glyphs) or the ascent (i.e. excluding any protruding
> > glyphs)?
> Assuming that the font-size is 12pt, the line-height is 14pt and that
> 1pt should be added above and below, I think that the vertical alignment
> should be (1pt + ascent), not (1pt + max ascent), since the 12pt
> font-size does not include the max ascent and max descent.

I agree that you should use ascent, because otherwise it wouldn't be
aligned correctly from the bottom (i.e., centered).  (The way you
propose to do things, ascent + descent = font-size, right?  And I
assume by "vertical alignment" you mean the distance from the top of
the inline box to the baseline of the text.)


L. David Baron    Sophomore, Harvard (Physics)
Links, SatPix, CSS, etc.     <URL: >
WSP CSS AC                      <URL: >

Received on Saturday, 27 November 1999 10:28:47 UTC