8
I’m creating a website through a Child Theme Bootstrap-based Shoestrap. When I use webfonts they only work in Chrome.
What I’m doing wrong?
This is my CSS
@font-face {
font-family: 'open_sansitalic';
src: url('assets/fonts/OpenSans-Italic-webfont.eot');
src: url('assets/fonts/OpenSans-Italic-webfont.eot?#iefix') format('embedded-opentype'),
url('assets/fonts/OpenSans-Italic-webfont.woff') format('woff'),
url('assets/fonts/OpenSans-Italic-webfont.ttf') format('truetype'),
url('assets/fonts/OpenSans-Italic-webfont.svg#open_sansitalic') format('svg');
font-weight: normal;
font-style: normal;
}
h1 { font-family: 'open_sansitalic' sans-serif; font-size: 40pt; line-height: 50pt; color: #f68934; }
Have you tried changing the CSS of
h1
for:font-family:'Open Sans', sans-serif;
and addfont-style:italic;
?– Kazzkiq
this does not match the declared "font-family"
– user3216077