views:

602

answers:

5

I have the following css that works within Firefox but not i.e.? Obviously the fonts are within the directory... Any suggestions?

 @font-face {
          font-family: "Futura";
          src: url("../fonts/Futura_Medium_BT.eot"); /* IE */
          src: local("Futura"), url( "../fonts/Futura_Medium_BT.ttf" ) format("truetype"); /* non-IE */  
        }

body nav {
    font-family: Futura,  Verdana, Arial, sans-serif;
    font-size:1.2em;
    height: 40px;
}
A: 

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), ...

GvS
A: 

if you would like a cross browser font that is not web safe use one of the following. http://wiki.github.com/sorccu/cufon/about (canvas javascript) http://www.mikeindustries.com/blog/sifr (flash)

Kieran
any reason for the down vote? am i doing something wrong by providing an alternative answer? I don't mind down voting but at least let me know why.
Kieran
A: 

http://readableweb.com/mo-bulletproofer-font-face-css-syntax/

RoToRa
Here is another good overview: http://sixrevisions.com/css/font-face-guide/
revil
+4  A: 

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.

Ian Devlin
Thanks everybody for the help, but reading this article it shows that I was doing everything correctly it was just the way I had converted the fonts... Having read this article I used Font Squirrel to convert the fonts and then used the created CSS generated and it worked... So thanks Ian
Shane
Glad to have helped.
Ian Devlin
A: 

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; 
}
John Isaacks