Le 2 juil. 2012 à 05:59, L. David Baron a écrit : >> My question is, shouldn't the declaration for AlegreyaBold use >> font-weight: bold; instead of 'normal'? And should AlegreyaItalic use >> font-style: italic; - again, instead of 'normal'? > > I agree that it would make more sense to set up these fonts as the > same font-family (note that the rules you quoted are using different > font families) and as appropriate font-weights and font-styles. > > It should work in Gecko, but I'm not sure whether that will work > across all other browsers, so it's possible that the cross-browser > compatibility isn't there yet for doing it that way (which might be > a reason they're doing it the way they are, though I certainly don't > know for sure).
That will work fine in most browsers, except one (and a half): all IE older than 9. so if you do @font-face { font-family: 'Alegreya' , ...} (and repeat for each face with the same font-family) div { font-family: 'Alegreya' } em { font-style: italic; } strong { font-weight: bold; } <div> some text <em>italic text>/em> more text <strong>bold text</strong></div> IE 8 and older will not (always) show the italicised and bold text as such. Sometimes it does work, where IE starts faking / emulating the style. Philippe -- Philippe Wittenbergh http://l-c-n.com ______________________________________________________________________ css-discuss [css-d@lists.css-discuss.org] 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/