W3C home > Mailing lists > Public > public-css-testsuite@w3.org > June 2005

Re: Test suite

From: Ivor Hewitt <ivor@ivor.org>
Date: Mon, 6 Jun 2005 11:13:40 +0100
To: Ian Hickson <ian@hixie.ch>
Cc: public-css-testsuite@w3.org
Message-Id: <200506061113.41078.ivor@ivor.org>

On Sunday 05 Jun 2005 12:05, Ian Hickson wrote:
> On Sun, 5 Jun 2005, Ivor Hewitt wrote:
> > In the test:-
> > http://www.w3.org/Style/CSS/Test/CSS2.1/current/t1604-c542-letter-sp-00-b
> >-a.htm (and the duplicates of that test)
> >
> > I don't understand how test "class=seven" is supposed to work.
> >
> > The style sets the letter-spacing to "1.25ex", but in the Ahem font, the
> > letters are 1em square so isn't the x height is the same as the width?
>
> No, the ex height in the Ahem font is 0.8em. Compare the letter "p", which
> is the square but only filled below the baseline, and the letter E-acute,
> which is the square but only filled above the baseline. The ex height is
> the distance from the baseline to the top of the lower case letters. The
> lower case letters are the same height as the upper case letters, but the
> baseline is 0.2em from the bottom of the letters. (The extent of the font,
> though, as you point out, is indeed 1em.)
>
Ah, excellent thanks for the clarification Ian. I just need to work out how to 
weave the xHeight metric through the Qt API now.

Cheers,

-- 
Ivor Hewitt.
http://www.ivor.it - tech | http://www.ivor.org - hedge
Received on Monday, 6 June 2005 10:14:55 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 20 September 2010 17:51:54 GMT