I developed the web-page under Windows. It has such folders:
wwwroot
wwwroot/css
wwwroot/fonts
and files
wwwroot/css/main.css
wwwroot/fonts/fontaaa.otf
main.css file has such a code:
@font-face
{
font-family : 'fontaaa';
src : url("../fonts/fontaaa.otf");
}
and it sees the font under Windows on my localhost.
Everything is perfect, so I uploaded my project to the linux server.
Everything works fine (the page loads, styles are OK), but the font fontaaa.otf is not displayed. What is the problem? Spent a lot of time to figure out.
P.S. I’ve never used @font-face before.
P.S.S. the font was downloaded from Internet (was not in the Windows fonts folder).
Font face is declared like this :
And to apply these fonts you’ve to do like this :
For more web fonts