Search code examples
csswordpressfirefoxbrowsericon-fonts

Icon-font not visible in firefox


I have added with @fontface an iconfont. The only problem is, that it is not visible under firefox. I have the newest version of firefox. Safari and Chrome are working perfectly fine.

@font-face {
    font-family: 'iconFont';
    src: url('../fonts/iconFont.eot');
    src: url('../fonts/iconFont.eot?#iefix') format('embedded-opentype'), url('../fonts/iconFont.svg#iconFont') format('svg'), url('../fonts/iconFont.woff') format('woff'), url('/fonts/iconFont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

Solution

  • @font-face {
        font-family: 'iconFont';
        src: url('../fonts/iconFont.eot');
        src: url('../fonts/iconFont.eot?#iefix') format('embedded-opentype'),
            url('../fonts/iconFont.woff') format('woff'),
            url('../fonts/iconFont.ttf') format('truetype'),
            url('../fonts/iconFont.svg#iconFont') format('svg');
        font-weight: normal;
        font-style: normal;
    } 
    

    For font-face kit generations you can use: