Re: Web Fonts

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 UTC