Re: @font-face rules

On Tue, 9 Nov 1999, Erik van der Poel wrote:

> CSS2, section 15.3.1:
> 
>   Note that if the font 'Robson Celtic' had been installed on the
>   client system, this would have caused the UA to add an entry in
>   the font database for the installed copy as described in the
>   section on the font matching algorithm. The installed copy
>   would have been matched before the downloadable font in the
>   example above.
> 
> Which part of the CSS2 spec specifies how the various @font-face rules
> override each other?

The penultimate paragraph of section 15.3.1 reads:
# If a font descriptor is duplicated, the last occurring descriptor
# wins and the rest must be ignored.


> Does this mean that the document can specify its own font
> descriptors for the generic font "serif", and that these descriptors
> will be used rather than the UA's own descriptors?

Yes, since the 'font-family' descriptor takes <generic-family> and the
author's CSS sheet comes after the UA's.

-- 
Ian Hickson
"So far, people have shown a reasonable amount of sense in evaluating
souls (whether they are properly priced)."
  -- Nick Gibbins; Author of http://totl.net/Soul/, 1999-10-05

Received on Sunday, 14 November 1999 06:49:22 UTC