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

Re: Downloadable fonts and image replacement

From: Håkon Wium Lie <howcome@opera.com>
Date: Mon, 1 May 2006 15:07:16 +0200
Message-ID: <17494.2052.761771.768451@localhost.localdomain>
To: fantasai <fantasai.lists@inkedblade.net>
Cc: www-style@w3.org

Also sprach fantasai:

 > >   h1 {
 > >     content: url(img/100x100.gif), contents;
 > >     font-family: url(/fonts/goodfish.zip), serif;
 > >   }

 > You're missing an important part of the usual set of preferences:
 > Usually you want to /preferably/ use the font installed on the system,
 > if it's there. Any proposal needs for resolving this conflict needs
 > to address that as well..

Sure, that's easy, you just add the font family name:

  h1 {
    content: url(img/100x100.gif), contents;
    font-family: "Goodfish", url(/fonts/goodfish.zip), serif;
  }

-h&kon
              Håkon Wium Lie                          CTO °þe®ª
howcome@opera.com                  http://people.opera.com/howcome
Received on Monday, 1 May 2006 13:08:13 GMT

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