diff options
author | Rasmus Andersson <rasmus@notion.se> | 2021-03-29 22:30:03 +0300 |
---|---|---|
committer | Rasmus Andersson <rasmus@notion.se> | 2021-03-29 22:30:03 +0300 |
commit | 637d0eb1861100028c1fb5159206a8059a658c9b (patch) | |
tree | 0e9cbee88a19873c72748867909a4cef1c21181d /docs/inter.css | |
parent | bff8f875a27e130145e68612e2ed54d174ccbdcd (diff) | |
download | inter-637d0eb1861100028c1fb5159206a8059a658c9b.tar.xz |
web: Disable subset fonts as it turns out pyftsubset does not correctly handle substitution features causing subs like ccmp to break
Diffstat (limited to 'docs/inter.css')
-rw-r--r-- | docs/inter.css | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/docs/inter.css b/docs/inter.css index 66877548f..b812483c6 100644 --- a/docs/inter.css +++ b/docs/inter.css @@ -1,7 +1,7 @@ --- layout: none --- -{% assign font_v = site.data.fontinfo[0].version | append: "b" %} +{% assign font_v = site.data.fontinfo[0].version %} /* Font families defined by this CSS: @@ -20,8 +20,29 @@ Use like this in your CSS: {% include Inter-static.css %} /* ----------------------- variable ----------------------- */ + +{%- comment -%} {% include Inter-italic.var.css %} {% include Inter-roman.var.css %} +{%- endcomment %} + +@font-face { + font-family: 'Inter var'; + font-style: normal; + font-weight: 100 900; + font-display: swap; + src: url('font-files/Inter-roman.var.woff2?v={{font_v}}') format('woff2'); + font-named-instance: 'Regular'; +} + +@font-face { + font-family: 'Inter var'; + font-style: italic; + font-weight: 100 900; + font-display: swap; + src: url('font-files/Inter-italic.var.woff2?v={{font_v}}') format('woff2'); + font-named-instance: 'Italic'; +} /* ----------- experimental multi-axis variable ----------- @@ -31,7 +52,18 @@ When using this, you will likely need to set font-variation-settings explicitly, * { font-variation-settings: "slnt" 0deg } .italic { font-variation-settings: "slnt" 10deg } */ + +{%- comment -%} {% include Inter.var.css %} +{%- endcomment %} + +@font-face { + font-family: 'Inter var experimental'; + font-style: oblique 0deg 10deg; + font-weight: 100 900; + font-display: swap; + src: url('font-files/Inter.var.woff2?v={{font_v}}') format('woff2'); +} /* Legacy name (became legacy on Feb 2, 2019) */ @font-face { |