- From: Christopher Slye <cslye@adobe.com>
- Date: Tue, 16 Nov 2010 08:41:15 -0800
- To: Mikko Rantalainen <mikko.rantalainen@peda.net>
- CC: "www-style@w3.org" <www-style@w3.org>
But that's just what we're trying to avoid. John said: "... requiring the use of @font-face rules to access alternates is somewhat cumbersome. It makes sense for general defaults for a given font but not for all use cases. For each possible combination of alternates, authors would need to create an @font-face rule rather than just changing a simple property setting." And you lose fallback functionality. With John's proposal, one can create a single variant name (e.g. "swishy") and map several different font family's alternates to it. One font's "swash 1" might be equivalent to another font's "swash 3", so it's convenient to just refer to an arbitrary name that stands for that alternate in whichever font one has. -Christopher On Nov 16, 2010, at 1:08 AM, Mikko Rantalainen wrote: > 2010-11-16 10:10 EEST: Christopher Slye: >> On Nov 15, 2010, at 11:50 PM, Mikko Rantalainen wrote: >>> If this understanding is correct, then I suggest that the only supported >>> method for font alternates is using the @font-face directly as in the >>> example above. >> >> ... Except that in your example, the stylistic alternates would be on >> all the time for that font, rather than discretionary. One could not >> use the font without those variants being activated everywhere. >> >> The advantage the name-key approach (e.g. "swishy") is that one can >> then activate it for only certain elements. I might not want swash >> capitals all the time for PoeticaStd; I might just want them for >> h2:first-letter, or some span. > > How about you do it this way: > > @font-face { > font-family: Swishy; > src: url(JupiterSans.woff) format('woff'); > font-variant: styleset(5, 13); > } > > @font-face { > font-family: Swashy; > src: url(JupiterSans.woff) format('woff'); > font-variant: styleset(7, 42); > } > > @font-face { > font-family: Foobarish; > src: url(JupiterSans.woff) format('woff'); > font-variant: styleset(3, 17); > } > > Then you just say that you want to use "Swishy" for h2:first-letter and > "Foobarish" for emphasized paragraph text. > > -- > Mikko >
Received on Tuesday, 16 November 2010 16:42:06 UTC