diff options
author | Rasmus Andersson <rasmus@notion.se> | 2021-06-18 22:53:27 +0300 |
---|---|---|
committer | Rasmus Andersson <rasmus@notion.se> | 2021-06-18 22:53:27 +0300 |
commit | a54153ae2d8f49585b836cb6a28b484823afbb9c (patch) | |
tree | 95f33792a2e0f8b181deaca40c5043612b780287 /docs | |
parent | ef2e879199826d341690b6dd7105c1b49e6f2827 (diff) | |
download | inter-a54153ae2d8f49585b836cb6a28b484823afbb9c.tar.xz |
website: disable fallback font-family names in lab to avoid local-font fallback
Diffstat (limited to 'docs')
-rw-r--r-- | docs/lab/font-files.js | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/docs/lab/font-files.js b/docs/lab/font-files.js index 3db1f61c4..61d444421 100644 --- a/docs/lab/font-files.js +++ b/docs/lab/font-files.js @@ -119,11 +119,12 @@ var fontFamilyName, fontCSS.appendChild(document.createTextNode(css)) document.head.appendChild(fontCSS) - // update family names to include CSS fallbacks - fontFamilyName += ", 'Inter'" - fontFamilyNameHinted += ", 'Inter'" - fontFamilyNameVar += ", 'Inter var'" - fontFamilyNameVarHinted += ", 'Inter var'" + // // update family names to include CSS fallbacks + // [rsms] Disabled to avoid local-font fallback + // fontFamilyName += ", 'Inter'" + // fontFamilyNameHinted += ", 'Inter'" + // fontFamilyNameVar += ", 'Inter var'" + // fontFamilyNameVarHinted += ", 'Inter var'" })() |