On 9/25/11 2:44 PM, Elli Vizcaino wrote:
Wanted to know the level of support w embedding fonts and if it will require 
Javascript to enforce compliancy w all major browsers?

Elli
Support for @font-face is excellent including our friends IE 6/7/8/9. Not 
supported in Camino at least at present. Nor in OperaMini [a mobile browser]. 
However, with a decent fallback font you are still good to go. No js required 
for open-source [free] webfonts from a repository such as FontSquirrel.

Best,
F. Goudy


Thanks David! When you wrote "fallback font" - how should this be set up in the 
CSS? Can you elaborate?




In this example the webfont Calluna [a serif] is followed by similar looking common serif fonts [the fallback stack if @font-face [Calluna] is not supported...

@font-face{font-family:'CallunaRegular';
src:url('calluna-regular-webfont.eot');
src:url('calluna-regular-webfont.eot?#iefix')
format('embedded-opentype'),url('calluna-regular-webfont.woff')
format('woff'),url('calluna-regular-webfont.ttf')
format('truetype'),url('calluna-regular-webfont.svg#CallunaRegular')
format('svg');f
ont-weight:normal;font-style:normal}

/* these are the target elements carrying the @font-face webfont Calluna and 
the fallback serifs for it */

body.fa #page article h1,body.fa footer p#f{
color:silver;
font:240%
'CallunaRegular',
Palatino,
'Palatino Linotype',
Georgia,Times,
'Times New Roman',
serif!important;
font-weight:normal!important;
line-height: normal;
letter-spacing:normal;
margin:20px auto 0 auto;
text-transform:uppercase!important}


One could quibble regarding the font selection for the fallbacks used in the 
above stack for Calluna from now until forever. And no doubt sameone will do 
exactly that...

In the meantime, use the @font-face generator [check the expert box] on 
FontSquirel to set the top block above and use whatever fallback fonts do it
for you and yours [I'd toss in Goudy as first in the fallback stack myself-- 
but then I have a vested interest...

Best,
F. Goudy
New York City






______________________________________________________________________
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