At 11:53 -0400 on 06/29/2012, Tom Livingston wrote about [css-d] font-face declarations:

I got the following from FontSquirrel:

@font-face {
    font-family: 'AlegreyaRegular';
    src: url('Alegreya-Regular-webfont.eot');
src: url('Alegreya-Regular-webfont.eot?#iefix') format('embedded-opentype'),
         url('Alegreya-Regular-webfont.woff') format('woff'),
         url('Alegreya-Regular-webfont.ttf') format('truetype'),
         url('Alegreya-Regular-webfont.svg#AlegreyaRegular') format('svg');
    font-weight: normal;
    font-style: normal;

[snip]

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'?

If so, why would FontSquirrel use 'normal' in these cases?

I think it is correct. Saying italic or bold asks the browser to either select an italic/bold version of the roman font requested or fake the style if there is no italic/bold of the font. Since you are supplying a pre-formatted font you want to use it as-is so normal is the correct setting.

To see what happens if you mix font-weight/style with an italic/bold font, try asking for one that you have on your machine and the add a style to it and compare with the same font with no style.



TIA!

--

Tom Livingston | Senior Interactive Developer | Media Logic |
ph: 518.456.3015x231 | fx: 518.456.4279 | mlinc.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/

Reply via email to