tags:

views:

69

answers:

3

I'm trying to render a font using the css property @font-face , in Firefox, Chrome and Opera it works fine, but within Internet Explorer is just does not want to display correctly, and reverts back to another standard font.

My code looks as follows

@font-face {

                font-family: "swatch";

        src: url("../../fonts/swatch.eot"); /* IE */

                src: url("../../fonts/swatch.ttf") format("truetype");

}

.header_text1{

    font-family: "swatch";

    font-size: 78px;

    text-align:center;

    color: #ffffff;

    padding-top: 50px;

}

Am I doing something wrong here?

A: 

Try without the quotes when you are using the font, font-family:swatch;

Liam Bailey
@Liam, thanx for the answer, but did not work
Roland
A: 

http://reisio.com/examples/webfonts/

reisio
@reisio, no luck
Roland
Try naming it something utterly unique, like 'sitename-swatch'. Make sure you're dumping the browser cache with CTRL+F5.If that doesn't work, then you're either doing something _really_ wrong, or your browser is truly broken.Either way, if you can link to a live example, it will be easier for people to help.
reisio
A: 

I have an answer, I developed this site on my local host and then it did not work, I then moved the site to the live server and that solved the problem. It probably was a caching issue. Thanks to all who tried to help!!!

Roland