I've recently delved into the world of SASS and I'm encountering a dilemma with importing two specific fonts: Montserrat and Open Sans. Typically, in regular CSS, you would use something like this:
@font-face {
font-family: 'Montserrat';
src: url('../../webfonts/Montserrat.ttf');
}
However, when I try to implement this in my SASS file with the following directory structure:
CSS
Base
typography.sass
Webfonts
Montserrat.ttf
My SASS code looks like this:
@font-face
font-family: 'Montserrat'
src: url("../../webfonts/Montserrat.ttf")
@font-face
font-family: 'Open Sans'
src: url("../../webfonts/OpenSans.ttf")
src: url("../../webfonts/OpenSans.ttf?iefix") format("embedded-opentype")
Despite setting up the font declarations correctly, the fonts still do not load. I have researched similar issues but none of the solutions seem to work for me. What could be causing this problem?