Within my project.less
file, I have declared several fonts to load:
@font-face {
font-family: 'Myriad Set Pro';
src: url(/assets/fonts/Myriad-Apple-Text/myriad-set-pro_medium.woff) format('woff');
//font-style: normal;
font-weight: medium;
}
@font-face {
font-family: 'Myriad Set Pro';
src: url(/assets/fonts/Myriad-Apple-Text/myriad-set-pro_text.woff) format('woff');
//font-style: normal;
font-weight: normal;
}
@font-face {
font-family: 'Myriad Set Pro';
src: url(/assets/fonts/Myriad-Apple-Text/myriad-set-pro_thin.woff) format('woff');
//font-style: normal;
font-weight: thin;
}
@font-face {
font-family: 'Myriad Set Pro';
src: url(/assets/fonts/Myriad-Apple-Text/myriad-set-pro_extrathin.woff) format('woff');
//font-style: normal;
font-weight: extrathin;
}
However, only the last declared font seems to be loading correctly. This results in all fonts on my application appearing as extrathin, even when their weight should be different. If I rearrange the order and place the medium font declaration last, then all fonts will display as medium.
Upon inspection in the Chrome network console, it is evident that only one font gets loaded at a time.