W3C home > Mailing lists > Public > www-style@w3.org > February 2003

font sizes

From: Sigurd Lerstad <sigler@bredband.no>
Date: Sat, 22 Feb 2003 11:54:51 +0100
Message-ID: <01b401c2da60$d31d17d0$7d1273d5@mmstudio>
To: <www-style@w3.org>


I'm having some questions regarding fonts and font-sizes.

When I create a font in windows.

I use something like:

lf.lfHeight = - computedFontSizeInPixels

Do you know if this is correct?


What is the em size of a font? Is 1em the same as font-size? Or Is it
smaller or larger than font-size?
If not the same, do you happen to know how to get the em height of a windows


The CSS2.1 specifies a table for absolute font sizes, and it also has a
sample stylesheet for HTML4
where it sais h1 {font-size: 2em} etc.

This means that headings scale according to the parents font-size (But
neither IE or Opera seem to do that)?

Also. it doesn't seem that the table on absolute font-sizes in CSS2.1 is in
accordance with the sample stylesheet, for instance, the scaling factor for
h6 is 3/5=0.6, but the sample stylesheet sais {font-size: .75em}

What am I missing, and what is correct?

And one last point, it sais that medium is the default for font-size. But in
IE and Opera, it looks like small is the default? What's with that?


Sigurd Lerstad
Received on Friday, 21 February 2003 04:51:47 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:06 UTC