I've written a blog post in the past on how to get @font-face working from scratch. Feel free to have a look: Adventures with @font-face.
I read a lot of tutorials that suggested hacks, so I came up with this solution I think is better... It seems to work fine.
@font-face {
font-family: MyFont; src: url('myfont.ttf');
}
@font-face{
font-family: MyFont_IE; src: url('myfont.eot');
}
.my_font{
font-family: MyFont, MyFont_IE, Arial, Helvetica, sans-serif;
}
You could use the Google Font API. They say it works from IE 6 and up. (I've not tested this.)
Google’s serving infrastructure takes care of converting the font into a format compatible with any modern browser (including Internet Explorer 6 and up), ...
Try a proper syntax: Fontspring Syntax, Further Hardening of the Bulletproof Syntax, Mo’ Bulletproofer, or Smiley.
If you're still having troubles with this, here's your solution:
http://www.fontsquirrel.com/fontface/generator
It works far better/faster than any other font-generator and also gives an example for you to use.
Will this work with .otf e.g SansaCon-Black.otf Cheers
I have the following CSS that works within Firefox but not IE. Obviously, the fonts are within the directory. Any suggestions?