I'm using CSS, the font file .ttf, and the font "Dirty Headline".
my code looks like this:
@font-face {
font-family: 'Dirty Headline';
src: url("./fonts/Dirty Headline.ttf") format('truetype');
}
The Problem
On Chrome on Linux, the font works fine. However, on Mac on Chrome, the font doesn't work. On Windows on firefox, it works fine, however on Linux on firefox it doesn't.
Why does my font not work on some browsers and operating systems? Also, How can I fix this?
***** Edit *****
I changed my code to
@font-face {
font-family: "Dirty Headline";
src: url("./fonts/Dirty Headline.ttf") format("truetype"),
url("./fonts/Dirty Headline.woff") format("woff"),
url("./fonts/Dirty Headline.woff2") format("woff2"),
url("./fonts/Dirty Headline.otf") format("opentype"),
url("./fonts/Dirty Headline.eot") format("embedded-opentype");
}
still the same result, I'm unsure how to debug this