Use a light font weight with Sifr
-
26-09-2019 - |
문제
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?
해결책 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.
다른 팁
If you've only exported the Light version, it should be selected automatically. Otherwise try specifying font-family
for .sIFR-root
.
제휴하지 않습니다 StackOverflow