On Jun 22, 2011, at 5:54 PM, Rick Gordon wrote:

> Is there some way to map a font-variant or text-transform to a specific font, 
> without doing the expected variant/transform?
> 
> For instance, say I was using a style that had font-variant:small-caps and 
> also has Copperplate (a natively small-cap font) as the preferred font. So I 
> would want the following set of responses:
> 
> 1) If Copperplate is available, set it as normal normal bold 1.2em Copperplate
> 
> 2) If Copperplate is not available, set it as normal small-caps bold 1.1em 
> Verdana (or default sans-serif)

For the font-size, you could do something now, by using font-size-adjust. 
Unfortunately, support is somewhat spotty :-( - basically limited to Gecko 
1.9.0 + (Firefox 3.0 and newer) and IE 9 (if I'm not wrong).

In the future, you should be able to solve this with @font-face:
@font-face {src: local(/*font-name here*/); font-variant: ...;}

http://dev.w3.org/csswg/css3-fonts/#font-rend-desc

butthatisverymuchfuture.

> Could this be accomplished with CSS alone, or would it require Javascript?
Hmm, use @font-face to load a font with real small caps? And don't specify 
font-variant in your stylesheet. @font-face coverage is quite good (busted 
Androids aside).

Philippe
--
Philippe Wittenbergh
http://l-c-n.com/






______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to