I tried several different ways to include the correct fonts in CSS. I know that I need an eot version for the font to work in IE, but I can’t recognize it. I used the squirrel font to convert the fonts, and I put the .eot and .otf file in a folder called "fonts". Here is my CSS:
@font-face { font-family: BebasNeue; src: url('fonts/BebasNeue.eot'); src: url('fonts/BebasNeue.otf') format("opentype"); }
UPDATE Thus, from the suggestions below, they brought me to this site: http://www.fontspring.com/blog/further-hardening-of-the-bulletproof-syntax
I used CSS:
@font-face { font-family: 'BebasNeue'; src: url('fonts/bebasneue.eot'); src: url('fonts/bebasneue.eot?#iefix') format('embedded-opentype'), url('fonts/bebasneue.woff') format('woff'), url('fonts/bebasneue.ttf') format('truetype'), url('fonts/bebasneue.svg#svgBebasNeue') format('svg'); }
Then I went back to Font Squirrel, downloaded the kit again and renamed everything correctly, and it worked.
source share