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

Font definition

From: Foxy Shadis <foxyshadis@hotmail.com>
Date: Wed, 28 May 2003 15:35:39 -0700
To: www-style@w3.org
Message-ID: <BAY7-F87FSqY3FWXlNC0001a21b@hotmail.com>

Has there been any kind of thought about font-macros, so that one definition 
can hold a collection of fonts commonly used? For instance, serif can be 
slaved to an expression like "Adobe Jensen Pro", Garamond, "Times New 
Roman", serif. Then every time serif is used, it would use that collection. 
A more general and less confusing way would probably be to give the 'macros' 
alternate names. Even if there were just a small collection of available 
macros, it would go a long way.

I only worry because many of my stylesheets have many repeated elements in 
long stylesheets, that are basically just three or four different 
collections of fonts (and often, properties) scattered through many disparte 

Perhaps with a syntax like:

@collection text-fonts { font-family: "Adobe Jensen Pro", Garamond, "Times 
New Roman", serif; }
h1 { collection: text-fonts, small-bold; margin: 0 1em; }
p { collection: text-fonts; }

This idea could easily be extended more generally, to make stylesheets more 
modular and easier to change quickly. That's starting to make it too much 
like a scripting language than a definition language, though. I'm not sure 
what would be best.


Swiftpaw Foxyshadis, wildlife artist
foxyshadis@hotmail.com | http://foxyshadis.dyndns.org/

The new MSN 8: smart spam protection and 2 months FREE*  
Received on Wednesday, 28 May 2003 18:35:46 UTC

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