diff --git a/docs/index.html b/docs/index.html index 85740449b..02ba2a27b 100644 --- a/docs/index.html +++ b/docs/index.html @@ -25,8 +25,6 @@ endfor -
-
@@ -520,6 +518,29 @@ html { font-family: 'Inter', sans-serif; } started. + +

+ How do I subset the font files? +

+ The web fonts provided by inter.css and + inter-display.css already use subset font files. + If you need special, customized subsets or subsetting of OTF or TTF files, + have a look at the tools + pyftsubset + and + glyphhanger +
+ + +

+ How do I access alternate glyphs if my software doesn't provide OpenType control? +

+ Have a look at + pyftfeatfreeze + which is a tool that allows you to build font files with certain OpenType features turned + on "by default". +
+

This website claims work started in 2016, but the git repository's log says it started later? @@ -528,24 +549,6 @@ html { font-family: 'Inter', sans-serif; } starting in November 2016, prior to being published on August 22, 2017. Between November 2016 and August 2017, there were 2 990 150 line edits made across 247 versions. - The reason the public GitHub repository does not reflect this is the - fact that the project was initially only internal at the company where - the author works and had some sensitive information "checked in", - like AWS server details and internal author identity in - all commit messages. Maybe one day we can write an elaborate git - filter-branch program and convert the old repository to make - it public, but what would be the point of that?  :—) - - - -

- The variable font renders poorly in Chrome -

- There are some known issues with variable fonts in Chrome, in particular - on Microsoft Windows. You may see an effect similar to "ink bleed" where shapes overlap, for instance where the vertical and horizontal stems meet in "+" or "t". - On Windows you may in addition see incorrectly placed glyphs that looks like poor kerning (spacing between characters) and even some glyphs being lower or taller than other glyphs. - It is recommended to avoid using variable fonts on Chrome. - See the Chromium bug tracker for a list of variable-font related issues. @@ -701,7 +704,3 @@ trackingEl.addEventListener('mousedown', onPointerdownTracking, activeListener) updateTracking() })(); - \ No newline at end of file diff --git a/docs/res/base.css b/docs/res/base.css index 1cedcdffb..173bca16b 100644 --- a/docs/res/base.css +++ b/docs/res/base.css @@ -18,6 +18,14 @@ --blue: rgb(3, 102, 230); --green: rgb(38, 220, 78); --mediumGreen: rgb(119, 221, 134); + + --font-family: 'Inter'; +} + +@supports (font-variation-settings: normal) { + :root { + --font-family: 'Inter var'; + } } @supports not (color: color(display-p3 1 1 1)) { @@ -41,7 +49,7 @@ html { } body { background-color: #f4f4f4; color: #111; - font: 15px/22px 'Inter', system-ui, sans-serif; + font: 15px/22px var(--font-family), system-ui, sans-serif; /*font-size: 15px; line-height: 1.5;*/ @@ -96,18 +104,6 @@ body { .font-style-black { font-variation-settings: "wght" 900, "slnt" 0 !important; font-weight:900 !important; font-style:normal !important; } .font-style-black-italic { font-variation-settings: "wght" 900, "slnt" 100 !important; font-weight:900 !important; font-style:oblique !important; } -@supports (font-variation-settings: normal) { - body { - font-family: 'Inter var', system-ui, sans-serif; - } - body.chrome-win { - /* Chrome has some VF issues; worst are on Windows with incorrect kerning. - We disable VF on Chrome on Windows for that reason. - */ - font-family: Inter, system-ui, sans-serif; - } -} - DISABLED:target:before { content:""; display: block; @@ -522,18 +518,6 @@ h2.banner { color: #3B414A; } -.noise-layer { - background-image: url(noise512.png); - background-size: 256px; - opacity: 0.03; - pointer-events: none; - position: absolute; - top:0; - left:0; - right:0; - /*bottom:0;*/ -} - /* --------------------------------------------------------------------- */ diff --git a/docs/res/noise512.png b/docs/res/noise512.png deleted file mode 100644 index 66fe28ec1..000000000 Binary files a/docs/res/noise512.png and /dev/null differ