W3C home > Mailing lists > Public > www-style@w3.org > November 2008

Re: [css3-fonts] duplication and @font-face rules

From: Michael Day <mikeday@yeslogic.com>
Date: Wed, 12 Nov 2008 16:12:50 +1100
Message-ID: <491A65D2.6080305@yeslogic.com>
To: "L. David Baron" <dbaron@dbaron.org>
CC: "www-style@w3.org" <www-style@w3.org>

Hi David,

>>> (B) seems like it has some advantages, particularly when local() and
>>> src() are combined, and the font available locally may have more or
>>> fewer glyphs in it depending on what the user has chosen to install.
>>> It also feels more CSS-like to me (which could mean it fits author
>>> expectations better, although maybe not).
>>> (A) seems like it may have some advantages in terms of speed or
>>> bandwidth usage.
>>> However, current implementations in WebKit nightlies and in Gecko
>>> nightlies seem to do (A).
>> Prince does (B), and this behaviour is quite useful.
> Any chance you could expand on why it's useful?  And cc: www-style
> again when replying.

It allows you to define font families with intelligent fallback:

@font-face {
     font-family: MyFont;
     src: local("Times New Roman"), local("OpenSymbol"), ...

In the Prince default style sheets we actually use this to predefine the 
default font families such as "serif" and "sans-serif".



Print XML with Prince!
Received on Wednesday, 12 November 2008 05:13:38 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:41 UTC