1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2026-06-13 00:25:28 -04:00

multi-axis variable fonts are such a mess...

This commit is contained in:
2021-11-12 10:10:27 -05:00
parent 0e609f0d7b
commit 3444e54db6
2 changed files with 10 additions and 7 deletions
+8 -2
View File
@@ -56,10 +56,16 @@ pre,
font-family: settings.$font-stack-mono-variable;
}
// Chrome doesn't automatically slant multi-axis Inter var, for some reason
// Chrome doesn't automatically slant multi-axis Inter var, for some reason.
// Adding "slnt" -10 fixes Chrome but then over-italicizes in Firefox. AHHHHHHHHHH.
em {
font-style: italic;
font-style: normal;
font-variation-settings: "ital" 1, "slnt" -10;
// Roboto Mono doesn't have this problem, but the above fix breaks it, of course.
code {
font-style: italic;
}
}
}