I’m using some costume Fonts in my web site but i got probleme with one it’s not loaded and i can’t figure out the probleme, here’s the code :
@font-face {
font-family: OuachitaWayWbw;
src: url('fonts/Ouachita Way Wbw.ttf') format("truetype") ;
font-family: 'ChromeYellowNF';
src: url('fonts/Chrome Yellow NF.ttf');
}
#name {
font-size:26px;
font-family: 'OuachitaWayWbw';
padding-top:30px;
color:#000000;
margin-bottom:20px;
}
The ChromeYellowNF work’s. also i have tried to put each one in diffirent Font-face but did’t worked.
You have to have an @font-face declaration for each font:
The single quotes are not required.
If you are wanting to use custom fonts for IE9 you will need to also provide an “.eot” font file. http://www.w3schools.com/cssref/css3_pr_font-face_rule.asp
EDIT: Ok, different browsers have different ways of implementing fonts:
You may also need to add the following types to an .htaccess/IIS:
Taken from here: font-face with wrong MIME type in Chrome