Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IE9 @font-face encountered unknown error

I'm having an issue with @font-face on IE9 (windows 7). IE 8 on XP and all browsers on mac give me no probs. Just IE9.

I'm embedding my font like so:

@font-face {
    font-family: 'wendy_lpregular';
    src: url('../fonts/wendylpstd-medium.eot');
    src: url('../fonts/wendylpstd-medium.eot?#iefix') format('embedded-opentype'),
         url('../fonts/wendylpstd-medium.woff') format('woff'),
         url('../fonts/wendylpstd-medium.ttf') format('truetype'),
         url('../fonts/wendylpstd-medium.svg#wendy_lpregular') format('svg');
    font-weight: normal;
    font-style: normal;
}

It doesn't render the font and gives me the following error in the console:

CSS3111: @font-face encountered unknown error. 
wendylpstd-medium.eot

I have another font which I am embedding - and it is displaying correctly. What could be causing the ever fantastic IE9 to be crying over this?

like image 947
Fraser Avatar asked Jan 31 '26 04:01

Fraser


1 Answers

And now to our main highlight - the "CSS3111: @font-face encountered unknown error". This error is very ambiguous. If you have a look at MSDN again, you'll see its description says: "An unknown problem was encountered with the "Web Open Font Format (WOFF)", and "Embedded OpenType font (EOT)" of the Cascading Style Sheets (CSS) font". "Unknown Problem" doesn't sound too good to me - how am I supposed to solve an unknown problem? Fortunately we're given a hint here. It says: "Check source of the fonts". Indeed, CSS3111 is usually caused by an issue with the font's binary source. One of the popular online TTF to EOT converters for example produces EOT files with a NAME table that doesn't comply to the Microsoft standards, which results in EOT fonts that never load in IE and produce the CSS3111 error. So, when you experience a CSS3111, it is always good to try using a different TTF to EOT converter or font face generator.

Source: http://www.marinbezhanov.com/web-development/16/how-to-embed-webfonts-properly-and-how-to-solve-the-ambiguous-css3111-font-face-encountered-unknown-error/

like image 158
Siddharth Pandey Avatar answered Feb 03 '26 01:02

Siddharth Pandey



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!