My CSS code snippet:
@font-face {
font-family: 'Istok Web';
src: url(fonts/fonts_istok-web/IstokWeb-Regular.ttf);
}
body {
font-family: 'Istok Web', sans-serif !important;
line-height: 1.8;
color: #000;
background-color:#fff;
}
When I remove the sans-serif option, the imported font displays correctly. However, when it is included in the code as shown above, the browser defaults to the default sans-serif font. I have tried adding and removing the !important tag but the issue persists. Interestingly, if any extra text is added after 'Istok Web', the font switches back to sans-serif.