WEBFONT: cure Chrome

This commit is contained in:
Belleve Invis 2019-07-14 14:02:56 -07:00
parent 2e98f7a1b1
commit c14a0ef556
17 changed files with 510 additions and 404 deletions

View file

@ -14,6 +14,16 @@ module.exports = function(output, family, hs, formats) {
src: ${src};
}
`;
if (term.cssStyle === "oblique") {
// CHROME hates a family with both Italic and Oblique
ans += `
@font-face {
font-family: '${family + " Web Oblique"}';
font-weight: ${term.cssWeight};
src: ${src};
}
`;
}
}
fs.writeFileSync(output, ans);
};