@font-face works in IE8 but not IE9
No answer, just confirmation: I have a similar kind of problem. Font works in all other IE versions except IE9, both using IETester and original browser. When changing Document Mode (F12 dev tools) font works. Not how I'd like it though.
Update: With some trickery I managed to get it working. Seems like IE9 is using the .woff version of the font (which I had excluded) over the .eot that I thought it would. I used the @font-face generator from fontsquirrel to get all the different font variations and included them in my project, using the smileyface-local. Did not have to alter my .htaccess file. Now works fine and looks the same in all IE versions:
@font-face {
font-family: "LucidaFax-bold";
src: url("_font/LucidaFax-bold.eot");
src: local("☺"),
url("_font/LucidaFax-bold.woff") format("woff"),
url("_font/LucidaFax-bold.ttf") format("truetype"),
url("_font/LucidaFax-bold.svg#LucidaFax-bold") format("svg");
}
h1 { font-family: "LucidaFax-bold", serif;}
(I even got mad fresh using Mark "Tarquin" Wilton-Jones' text-shadow hack, applying same look to IE versions as rest of the browser world. Old school? Looks great! Was it worth it? Well, learned a lot. ;)
Css @font-face not working in ie9
You need to add the format .eot in order to be recognized by IE9.
@font-face {
font-family: 'MyWebFont';
src: url('webfont.eot'); /* IE9 Compat Modes */
src: url('webfont.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('webfont.woff') format('woff'), /* Modern Browsers */
url('webfont.ttf') format('truetype'), /* Safari, Android, iOS */
url('webfont.svg#svgFontName') format('svg'); /* Legacy iOS */
}
source
@font-face does not work in IE8, works in IE9
The syntax is fine, I would look at server configuration or the font file itself. Did you use a conversion tool? Try converting the font again.
Check to see if you can access the EOT file directly (should be fine if it works in IE9).
Are there any CSS classes targeting IE8? Check to see if they are changing the font family.
@font-face does not work in IE8, works in IE9
The syntax is fine, I would look at server configuration or the font file itself. Did you use a conversion tool? Try converting the font again.
Check to see if you can access the EOT file directly (should be fine if it works in IE9).
Are there any CSS classes targeting IE8? Check to see if they are changing the font family.
Css @font-face not working in ie9
You need to add the format .eot in order to be recognized by IE9.
@font-face {
font-family: 'MyWebFont';
src: url('webfont.eot'); /* IE9 Compat Modes */
src: url('webfont.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('webfont.woff') format('woff'), /* Modern Browsers */
url('webfont.ttf') format('truetype'), /* Safari, Android, iOS */
url('webfont.svg#svgFontName') format('svg'); /* Legacy iOS */
}
source
Font Face not working in IE8 as expected
If IE8 throws the CSS3111: @font-face encountered unknown error
, you probably have the non-matching font-family name problem.
To resolve this, you need to edit your font file, define identical names for Fontname, Family name and Name for humans and export your TTF. This can be done using the FontForge application. Afterwards, you than again convert it for web (EOT, WOFF).
More info: http://fontface.codeandmore.com/blog/ie-7-8-error-with-eot-css3111/
Update
Made it working by downloading an own version of the TTF font and converted it for web. The CSS I used:
@font-face {
font-family: 'portagoitc-tt';
src: url('fonts/portagoitc-tt.eot');
src: url('fonts/portagoitc-tt.eot?iefix') format('opentype'),
url('fonts/portagoitc-tt.woff') format('woff'),
url('fonts/portagoitc-tt.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
Related Topics
Css: Set a Background Color Which Is 50% of the Width of the Window
How to Get a Bootstrap Column to Span Multiple Rows
Centering Brand Logo in Bootstrap Navbar
Css: Fixed Position on X-Axis But Not Y
How to Draw a Circle Sector in Css
Setting CSS Top Percent Not Working as Expected
Every Item to Have the Same Width as the Widest Element
Webkit: Blurry Text With CSS Scale + Translate3D
How to Style Default Confirm Box With Only Css
Display:Block Inside Display:Inline
Is Background-Color:None Valid CSS
Z-Index Does Not Work in Internet Explorer with PDF in Iframe
@Media Query Not Working in Mobile. Works Fine in Chrome
Removing Display:Flex Adds Spaces Around a Link. Why
What Is the Value of the CSS 'Ex' Unit
Scrollable Menu with Bootstrap - Menu Expanding Its Container When It Should Not