Font not correctly displaying in Internet Explorer using the css property @font-face

Posted by Roland on Stack Overflow See other posts from Stack Overflow or by Roland
Published on 2010-05-15T08:53:19Z Indexed on 2010/05/15 9:04 UTC
Read the original article Hit count: 245

Filed under:

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?

© Stack Overflow or respective owner

Related posts about css