Font definition

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 
elements.

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.

Foxy

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

_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail

Received on Wednesday, 28 May 2003 18:35:46 UTC