W3C home > Mailing lists > Public > www-style@w3.org > August 2006

Re: Web Fonts

From: Ian Hickson <ian@hixie.ch>
Date: Thu, 24 Aug 2006 11:06:26 +0000 (UTC)
To: Anne van Kesteren <annevk@opera.com>
Cc: Håkon Wium Lie <howcome@opera.com>, www-style@w3.org
Message-ID: <Pine.LNX.4.62.0608241104360.10139@dhalsim.dreamhost.com>
On Thu, 24 Aug 2006, Anne van Kesteren wrote:
>
> On Thu, 24 Aug 2006 12:43:44 +0200, Håkon Wium Lie <howcome@opera.com> wrote:
> > you would write:
> > 
> >     h1 { font-familiy: Headline, url(http://example.com/fonts/hdl.zip),
> > serif }
> 
> Perhaps
> 
>  h1 { font-family: Headline url(...), serif }
> 
> would be better. Putting the name of the font and the font resource 
> together instead of separating them by a comma.

The two names are unrelated. "font-family: Foo, url(bar), Baz" just means 
"use Foo if you have it, otherwise download bar and use that if you can, 
otherwise use Baz if you have it". In examples the zip file is often 
preceeded by a font name that matches the contents of the zipfile merely 
because this allows the UA to skip downloading the file if the font is 
installed. (But if a glyph is missing in the locally installed font, the 
UA will still download the file to see if it has the glyph.)

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Thursday, 24 August 2006 11:06:41 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:46 GMT