css - embed font both for IE and FF
css, font-face
Solution
Font-face syntax is tricky, particularly with IE. Please use the one we developed here, which is cross-browser tested. http://www.fontspring.com/blog/the-new-bulletproof-font-face-syntax
It looks like this:
@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 */
}
Problem
I'm trying to embed a font, the problem is that it is just displayed in Firefox but not with Internet Explorer. ``` @font-face { font-family: capture_it; src: url('fonts/Capture_it.eot'); src: local('Comfortaa_it'), url('fonts/Capture_it.ttf') format('truetype'); } ``` Any help is very appreciated. Thanks, enne