[OpenFontLibrary] font face firefox friendly?
Liam R E Quin
liam at holoweb.net
Wed Jan 7 13:46:19 PST 2009
On Wed, 2009-01-07 at 16:37 -0500, Aaron Spaulding wrote:
> On Wed, 2009-01-07 at 07:31 -0500, Ed Trager wrote:
> > If someone on this list has any ideas on how to check for @font-face
> > support using Javascript, please let all of us know about it.
>
> Well the definition for the 'em' unit is the size of of the capital
> letter M in the current font
No. An em quad is (was) a square of type the size of the type -- the
full height of the other slugs and as wide as it was tall. It happens
that in many fonts this is close to or the same as the width of the M,
and that gave rise to the name, but they are not guaranteed to be the
same.
> So, it would be possible to create a font
> with a letter 'M' that has an absurdly large height. Then you link the
> font to the page, and create a div with a height of 1em. The pixel size
> of the div should match the the height of the absurdly large
> 'M' (provided you use the right font height).
Interesting idea...
Better to use ex, the x-height, which seems more
likely to be font-specific, although I didn't check the
CSS spec for it.
Best,
Liam
--
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org www.advogato.org
More information about the OpenFontLibrary
mailing list