Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Ok, I figured out my own question. There has to be a very specific order for it to work correctly. You need to define them in this order:</p> <p>normal italic bold bold italic</p> <p>So the css would look like this:</p> <pre><code>@font-face { font-family: 'opensans'; src: url('opensans-regular-webfont.eot'); src: url('opensans-regular-webfont.eot?#iefix') format('embedded-opentype'), url('opensans-regular-webfont.woff') format('woff'), url('opensans-regular-webfont.ttf') format('truetype'), url('opensans-regular-webfont.svg#open_sansregular') format('svg'); font-weight: normal; font-style: normal; } @font-face { font-family: 'opensans'; src: url('opensans-italic-webfont.eot'); src: url('opensans-italic-webfont.eot?#iefix') format('embedded-opentype'), url('opensans-italic-webfont.woff') format('woff'), url('opensans-italic-webfont.ttf') format('truetype'), url('opensans-italic-webfont.svg#open_sansitalic') format('svg'); font-weight: normal; font-style: italic; } @font-face { font-family: 'opensans'; src: url('opensans-semibold-webfont.eot'); src: url('opensans-semibold-webfont.eot?#iefix') format('embedded-opentype'), url('opensans-semibold-webfont.woff') format('woff'), url('opensans-semibold-webfont.ttf') format('truetype'), url('opensans-semibold-webfont.svg#open_sanssemibold') format('svg'); font-weight: bold; font-style: normal; } @font-face { font-family: 'opensans'; src: url('opensans-semibolditalic-webfont.eot'); src: url('opensans-semibolditalic-webfont.eot?#iefix') format('embedded-opentype'), url('opensans-semibolditalic-webfont.woff') format('woff'), url('opensans-semibolditalic-webfont.ttf') format('truetype'), url('opensans-semibolditalic-webfont.svg#open_sanssemibold_italic') format('svg'); font-weight: bold; font-style: italic; } body { font-family:'opensans'; font-size:78%; } </code></pre> <p>This article helped me to figure it out <a href="http://www.456bereastreet.com/archive/201012/font-face_tip_define_font-weight_and_font-style_to_keep_your_css_simple/" rel="nofollow">http://www.456bereastreet.com/archive/201012/font-face_tip_define_font-weight_and_font-style_to_keep_your_css_simple/</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload