I'm trying to host 2 Google fonts on my site. Everything looks correct when I view my site in FF and Chrome (using a local host) but one of the fonts, Raleway, doesn't work in IE 11.
I used Font Squirrel's generator to create an .eot compressed version) format for IE. The Raleway demo file I downloaded from Font Squirrel looks correct. The path for my fonts folder is correct. I don’t have an eot file for Bowlby One but that seems to be working for some reason.
I was given one eot file to download but there are two eot files in the style sheet code I downloaded. I don't know why that is.
I changed the font-display rule for Raleway to “swap" but that didn’t help.
CSS - @font-face rules (located at top of css file):
@font-face {
font-family: 'Bowlby One';
font-style: normal;
font-weight: 400;
font-display: swap;
src: local('Bowlby One Regular'), local('BowlbyOne-Regular');
url('../fonts/bowlby-regular-webfont.woff2') format('woff2'),
url('../fonts/bowlby-regular-webfont.woff') format('woff'),
url('../fonts/bowlby-regular-webfont.ttf') format('truetype');
}
@font-face {
font-family: 'ralewaylight';
font-weight: normal;
font-style: normal;
font-display: fallback;
src: local('Raleway Light'), local('Raleway-Light');
src: url('../fonts/raleway-light-webfont.eot'),
src: url('../fonts/raleway-light-webfont.eot?#iefix') format('embedded-opentype'),
url('../fonts/raleway-light-webfont.woff2') format('woff2'),
url('../fonts/raleway-light-webfont.woff') format('woff'),
url('../fonts/raleway-light-webfont.ttf') format('truetype');
}
CSS - body rule for Raleway:
h1{font:46px'Raleway',Arial, Helvetica, sans-serif;font-weight:300;color:#11688f;margin:0.4em 0;text-align:center;letter-spacing:-2px;}
What am I doing wrong? Thanks for your help!