WEBFONT: cure Chrome
This commit is contained in:
parent
2e98f7a1b1
commit
c14a0ef556
17 changed files with 510 additions and 404 deletions
|
@ -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);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue