Re: FW: Font-family specification

On Fri, 2 Feb 1996, Walter Ian Kaye wrote:

> At 11:01a 02/02/96, Hakon Lie wrote:
> 
> >Another solution is to limit the number of font names to 1 in the
> >'font' property:
> >
> > a)  font: 12pt/14pt sans-serif bold;  /* legal */
> > b)  font: 12pt/14pt helvetica sans-serif bold;  /* illegal? */
> >
> >I would prefer also allowing b).
> 
> How about having the font substitution specified separately from the style
> assignment? Like, just have a dedicated region in the style sheet for a
> font substitution table. That way you can limit the number of font names to
> 1 in the 'font' property without losing substitution ability. Besides, it
> will make for much cleaner code, which is what style sheets are trying to
> do for HTML in the first place, so let's do likewise for the style sheets
> themselves.

Good idea! How about

'@FONT-EQUIV' font-name [ font-styles ] ':' font-name [ font-styles ]
                                      [ ',' ... ] ';'

as a possible syntax?

Example:

@FONT-EQUIV "Old Style Roman" : antique, Palatino bold, "Times Roman",
                                Roman, serif;

@FONT-EQUIV Palatino bold : "Times Roman", Roman, serif bold;

Benjamin C. W. Sittler

Received on Friday, 2 February 1996 13:41:16 UTC