• Is there anything wrong with this font-face code that is not changing the font of my webpage? I installed all the font files in the ‘fonts’ folder of my theme folder.

    @font-face {
    font-family: ‘roboto_slabregular’;
    src: url(‘fonts/robotoslab-regular-webfont.eot’);
    src: url(‘fonts/robotoslab-regular-webfont.eot?#iefix’) format(’embedded-opentype’),
    url(‘fonts/robotoslab-regular-webfont.woff2’) format(‘woff2’),
    url(‘fonts/robotoslab-regular-webfont.woff’) format(‘woff’),
    url(‘fonts/robotoslab-regular-webfont.ttf’) format(‘truetype’),
    url(‘fonts/robotoslab-regular-webfont.svg#roboto_slabregular’) format(‘svg’);
    font-weight: normal;
    font-style: normal;

    }

    I declared this code on my style.css sheet…and i changed all the font family to the declared name but it still does not work. Is there anything I can do???

The topic ‘font-face not working’ is closed to new replies.