In IE11 my fonts do not load correctly. I think it is the way I am calling them.
@import url('https://fonts.googleapis.com/css?family=Roboto');
@font-face {
font-family: Bebas;
src: url("{% static 'publicnfx/fonts/BebasNeue Regular.tff' %}"),
url("{% static 'publicnfx/fonts/BebasNeue Regular.otf' %}");
}
BebasNeue Regular.otf is the font that is not loading. It works on all other browsers such as Firefox, Chrome, Edge but not IE11 and below.
Error:
Update:
I found this solution online, but it did not work for me:
@import url('https://fonts.googleapis.com/css?family=Roboto');
@font-face {
font-family: Bebas;
src: url("{% static 'publicnfx/fonts/BebasNeue Regular.tff' %}");
src: url("{% static 'publicnfx/fonts/BebasNeue Regular.eot?#iefix' %}") format('eot'),
url("{% static 'publicnfx/fonts/BebasNeue Regular.otf' %}"),
url("{% static 'publicnfx/fonts/BebasNeue Regular.woff' %}") format('woff'),
url("{% static 'publicnfx/fonts/BebasNeue Regular.ttf' %}") format('truetype'),
url("{% static 'publicnfx/fonts/BebasNeue Regular.svg' %}") format('svg'),
}
This is most likely due to the fact I only have .ttf and .otf in my fonts folder.