Custom font not working on firefox
-
Hi,
I have searched for its solution, and I think I am doing everything like the suggestions, but it is still not working. Custom font works on chrome, ie; but not on firefox. I have used font face generator to generate fonts and the code. I have placed the @font-face code in <style>header</style>, custom.css file (in theme_root/css/) and also in style.css but it is not working.
Placed this in header.php
<style>
@font-face {
font-family: ‘Bebas Neue’;
src: url(‘fonts/bebasneue.eot’);
src: url(‘fonts/bebasneue.eot?#iefix’) format(’embedded-opentype’),
url(‘fonts/bebasneue.svg#Bebas Neue’) format(‘svg’),
url(‘fonts/bebasneue.woff’) format(‘woff’),
url(‘fonts/bebasneue.ttf’) format(‘truetype’);
font-weight: normal;
font-style: normal;
}
</style>Placed this in style.css
@font-face {
font-family: ‘Bebas Neue’;
src: url(‘fonts/bebasneue.eot’);
src: url(‘fonts/bebasneue.eot?#iefix’) format(’embedded-opentype’),
url(‘fonts/bebasneue.svg#Bebas Neue’) format(‘svg’),
url(‘fonts/bebasneue.woff’) format(‘woff’),
url(‘fonts/bebasneue.ttf’) format(‘truetype’);
font-weight: normal;
font-style: normal;
}Placed this in custom.css
@font-face {
font-family: ‘Bebas Neue’;
src: url(‘../fonts/bebasneue.eot’);
src: url(‘../fonts/bebasneue.eot?#iefix’) format(’embedded-opentype’),
url(‘../fonts/bebasneue.svg#Bebas Neue’) format(‘svg’),
url(‘../fonts/bebasneue.woff’) format(‘woff’),
url(‘../fonts/bebasneue.ttf’) format(‘truetype’);
font-weight: normal;
font-style: normal;
}Working everywhere but firefox. I am confused
https://tour.khujbo.comWhat should I do?
- The topic ‘Custom font not working on firefox’ is closed to new replies.