apply external font in CSS

I have an open type external font file and i want to apply it to the whole page.
It is getting applied properly in Ff and google chrome but in IE7 it is not taking effect

have attached the code i have added in the css
@font-face {
font-family: NewBaskervilleStd;
src:url(/jusin/style/NewBaskervilleStd-Roman.otf) format("opentype");
}

@font-face {
font-family: NewBaskervilleStd;
src:url(/jusin/style/NewBaskervilleStd-Bold.otf) format("opentype");
font-weight:bold;
}

@font-face {
font-family: NewBaskervilleStd;
src:url(/jusin/style/NewBaskervilleStd-BoldIt.otf) format("opentype");
font-weight:bold;
font-style:italic;
}

@font-face {
font-family: NewBaskervilleStd;
src:url(/jusin/style/NewBaskervilleStd-Italic.otf) format("opentype");
font-style:italic;
}

Open in new window

Desire2changeAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

remorinaCommented:
You'll need to provide an eof extension and format for IE

In order to achieve @font-face to work properly cross-browser, you need to provide all formats (eot, woff, otf and svg)

refer to http://nicewebtype.com/notes/2009/10/30/how-to-use-css-font-face/ for more information
0
Dave BaldwinFixer of ProblemsCommented:
IE requires different code.  Look here for info: http://hacks.mozilla.org/2009/06/beautiful-fonts-with-font-face/ .  MSDN says the same thing, IE only supports 'eot' font files.
0
Desire2changeAuthor Commented:
i have otf files is it possible to convert it to eot files ?
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

remorinaCommented:
There are some programs that can convert them but most of them you'll have to buy or they're limited
You can try this link which describes how to easily convert to ttf then back to eot
http://circuitbomb.com/index.php/2009/09/easy-oft-to-eot-conversion-for-font-face-css3-and-internet-explorer/
0
supershackleCommented:
Why don't you use Cufon for those special fonts? http://cufon.shoqolate.com/generate/
0
LZ1Commented:
I've been using the font squirrel generator for a while.  It gives you all of the fonts for full and true cross browser compatibility.
http://www.fontsquirrel.com/fontface/generator 
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
tomaugerdotcomCommented:
I like sIFR myself. If you own Flash you should be able to make use of this, and it's totally cross-browser and you don't need to worry about converting or embedding fonts:

explanation: http://www.mikeindustries.com/blog/sifr
download: http://www.mikeindustries.com/blog/files/sifr/2.0/sIFR-2.0.7.zip
example: http://www.mikeindustries.com/blog/files/sifr/2.0/
docs and tutorials: http://wiki.novemberborn.net/sifr/
0
LZ1Commented:
Any updates???
0
LZ1Commented:
Bump
 
0
LZ1Commented:
Any updates???
0
tomaugerdotcomCommented:
Doesn't look like it. I would recommend not touching this thread any further so it can be flagged to a moderator in 22 days.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
HTML

From novice to tech pro — start learning today.