I have a collection of fonts stored in my wwwroot
directory, as displayed on the console of my Node.js application:
https://i.sstatic.net/O0ss4.png
These fonts are used in my css
like so:
@font-face {
font-family: myFont;
src: url(resources/font/Montserrat-Bold.woff) format("truetype");
font-weight: bold;
}
@font-face {
font-family: myFont;
src: url(resources/font/Montserrat-Light.woff) format("truetype");
font-weight: 300;
}
@font-face {
font-family: myFont;
src: url(resources/font/Montserrat-Regular.woff) format("truetype");
font-weight: 400;
}
@font-face {
font-family: myFont;
src: url(resources/font/Montserrat-SemiBold.woff) format("truetype");
font-weight: 500;
}
html, body{
font-family: myFont;
font-weight: 300;
}
The fonts work perfectly on my localhost, but I encounter an error when I upload the version to Azure. https://i.sstatic.net/L1kix.png