From 2b20e67cae0dec661647e3e16d80734f03eb45cb Mon Sep 17 00:00:00 2001 From: Rasmus Andersson Date: Thu, 27 Dec 2018 18:44:26 -0700 Subject: [PATCH] adds extra light weight to build system --- README.md | 6 ++++ docs/inter-ui.css | 51 +++++++++++++++++++++++++-- docs/lab/index.html | 18 ++++++++++ init.sh | 2 ++ misc/dist/inter-ui.css | 51 +++++++++++++++++++++++++-- misc/fontbuild | 7 ++-- src/Inter-UI-italic.designspace | 29 +++++++++++++++ src/Inter-UI-upright.designspace | 29 +++++++++++++++ src/Inter-UI.designspace | 60 ++++++++++++++++++++++++++++++++ src/Inter-UI.glyphs | 56 +++++++++++++++++++++++++++++ 10 files changed, 300 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 09d6640db..76e491f1d 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,12 @@ Current font styles: | Name | Weight class | -------------------- | ---------------- +| Thin | 100 +| Thin Italic | 100 +| Extra Light | 200 +| Extra Light Italic | 200 +| Light | 300 +| Light Italic | 300 | Regular | 400 | Italic | 400 | Medium | 500 diff --git a/docs/inter-ui.css b/docs/inter-ui.css index 0143ff78b..c840361fa 100644 --- a/docs/inter-ui.css +++ b/docs/inter-ui.css @@ -1,3 +1,48 @@ +@font-face { + font-family: 'Inter UI'; + font-style: normal; + font-weight: 100; + src: url("font-files/Inter-UI-Thin.woff2?v=3.1") format("woff2"), + url("font-files/Inter-UI-Thin.woff?v=3.1") format("woff"); +} +@font-face { + font-family: 'Inter UI'; + font-style: italic; + font-weight: 100; + src: url("font-files/Inter-UI-ThinItalic.woff2?v=3.1") format("woff2"), + url("font-files/Inter-UI-ThinItalic.woff?v=3.1") format("woff"); +} + +@font-face { + font-family: 'Inter UI'; + font-style: normal; + font-weight: 200; + src: url("font-files/Inter-UI-ExtraLight.woff2?v=3.1") format("woff2"), + url("font-files/Inter-UI-ExtraLight.woff?v=3.1") format("woff"); +} +@font-face { + font-family: 'Inter UI'; + font-style: italic; + font-weight: 200; + src: url("font-files/Inter-UI-ExtraLightItalic.woff2?v=3.1") format("woff2"), + url("font-files/Inter-UI-ExtraLightItalic.woff?v=3.1") format("woff"); +} + +@font-face { + font-family: 'Inter UI'; + font-style: normal; + font-weight: 300; + src: url("font-files/Inter-UI-Light.woff2?v=3.1") format("woff2"), + url("font-files/Inter-UI-Light.woff?v=3.1") format("woff"); +} +@font-face { + font-family: 'Inter UI'; + font-style: italic; + font-weight: 300; + src: url("font-files/Inter-UI-LightItalic.woff2?v=3.1") format("woff2"), + url("font-files/Inter-UI-LightItalic.woff?v=3.1") format("woff"); +} + @font-face { font-family: 'Inter UI'; font-style: normal; @@ -110,7 +155,7 @@ BUGS: */ @font-face { font-family: 'Inter UI var'; - font-weight: 400 900; + font-weight: 100 900; font-style: oblique 0deg 10deg; src: url("font-files/Inter-UI.var.woff2?v=3.1") format("woff2-variations"), url("font-files/Inter-UI.var.woff2?v=3.1") format("woff2"); @@ -129,7 +174,7 @@ BUGS: */ @font-face { font-family: 'Inter UI var alt'; - font-weight: 400 900; + font-weight: 100 900; font-style: normal; font-named-instance: 'Regular'; src: url("font-files/Inter-UI-upright.var.woff2?v=3.1") format("woff2 supports variations(gvar)"), @@ -138,7 +183,7 @@ BUGS: } @font-face { font-family: 'Inter UI var alt'; - font-weight: 400 900; + font-weight: 100 900; font-style: italic; font-named-instance: 'Italic'; src: url("font-files/Inter-UI-italic.var.woff2?v=3.1") format("woff2 supports variations(gvar)"), diff --git a/docs/lab/index.html b/docs/lab/index.html index db2162d4f..958a1c08b 100644 --- a/docs/lab/index.html +++ b/docs/lab/index.html @@ -1014,6 +1014,23 @@ for (const ch of uniqueChars) { url("fonts/const/Inter-UI-ThinItalic.woff") format("woff"); } +@font-face { + font-family: 'Inter-UI-VERSION'; + font-style: normal; + font-weight: 200; + font-display: auto; + src: url("fonts/const/Inter-UI-ExtraLight.woff2") format("woff2"), + url("fonts/const/Inter-UI-ExtraLight.woff") format("woff"); +} +@font-face { + font-family: 'Inter-UI-VERSION'; + font-style: italic; + font-weight: 200; + font-display: auto; + src: url("fonts/const/Inter-UI-ExtraLightItalic.woff2") format("woff2"), + url("fonts/const/Inter-UI-ExtraLightItalic.woff") format("woff"); +} + @font-face { font-family: 'Inter-UI-VERSION'; font-style: normal; @@ -1314,6 +1331,7 @@ document.head.appendChild(fontCSS)