Use a light font weight with Sifr
-
26-09-2019 - |
Question
With sifr, how do I make a font use the light weight version. I have...
var gillsans = { src: '/resources/swf/gillsans.swf' };
sIFR.activate(gillsans);
sIFR.replace(gillsans, {
selector: 'h1',
css: '.sIFR-root { background-color: #FFFFFF; color: #000000; text-transform:uppercase; }'
});
which is displaying regular Gill Sans, the light version has been exported with the swf (said so in the export report), but how do I get it to display in sifr?
Solution 2
You can't specify it in the sifr config, you have to use the 'Thin' version of the font when you export it from flash.
OTHER TIPS
If you've only exported the Light version, it should be selected automatically. Otherwise try specifying font-family
for .sIFR-root
.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow