David,

By mapping a font-variant or text-transform to a specific font, I meant that

Say that there is CSS such as this:

        h2 {font-family:Copperplate, Verdana, sans-serif; 
font-variant:small-caps;}

If Copperplate is available, I would want the CSS to be font-variant:normal, 
while if it's not available, it would be font-variant:small-caps. This scenario 
could take place in an iOS context, where the iPad has Copprplate installed, 
but earlier iPhones do not.

Using @fontface embedding of Copperplate might be contraindicated due to 
copyright restrictions.

Rick Gordon

------------------

On 6/22/11 at 11:35 AM -0400, David Laakso wrote in a message entitled
"Re: [css-d] Any Way to Map font-variant or text-transform t":

>I afraid I have no idea what the expression "map a ..." means...
>
>@fontface works fairly well cross-browser -- providing an appropriate fallback 
>font is set for browers not yet supporting it such as Mac Camino -- for two or 
>three word display fonts but is abysmal for setting a block of text.

--

>On 6/22/11 4:54 AM, 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)
>>
>>Could this be accomplished with CSS alone, or would it require Javascript?

-- 
___________________________________________________

RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___________________________________________________

WWW:   http://www.shelterpub.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