font sizes

Hello,

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

1.
When I create a font in windows.

I use something like:

LOGFONT lf;
lf.lfHeight = - computedFontSizeInPixels

Do you know if this is correct?

2.

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

Also.

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?

thanks,

--
Sigurd Lerstad

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