summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRasmus Andersson <rasmus@notion.se>2018-12-28 04:44:26 +0300
committerRasmus Andersson <rasmus@notion.se>2018-12-28 04:44:26 +0300
commit2b20e67cae0dec661647e3e16d80734f03eb45cb (patch)
tree665c5bc2496f2d11ea3a17889d6156839b629e84
parent9bb34a8fa6309c51893dce952375909c11250638 (diff)
downloadinter-2b20e67cae0dec661647e3e16d80734f03eb45cb.tar.xz
adds extra light weight to build system
-rw-r--r--README.md6
-rw-r--r--docs/inter-ui.css51
-rw-r--r--docs/lab/index.html18
-rwxr-xr-xinit.sh2
-rw-r--r--misc/dist/inter-ui.css51
-rwxr-xr-xmisc/fontbuild7
-rw-r--r--src/Inter-UI-italic.designspace29
-rw-r--r--src/Inter-UI-upright.designspace29
-rw-r--r--src/Inter-UI.designspace60
-rw-r--r--src/Inter-UI.glyphs56
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,6 +1,51 @@
@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;
font-weight: 400;
src: url("font-files/Inter-UI-Regular.woff2?v=3.1") format("woff2"),
url("font-files/Inter-UI-Regular.woff?v=3.1") format("woff");
@@ -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
@@ -1017,6 +1017,23 @@ for (const ch of uniqueChars) {
@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;
font-weight: 300;
font-display: auto;
src: url("fonts/const/Inter-UI-Light.woff2") format("woff2"),
@@ -1314,6 +1331,7 @@ document.head.appendChild(fontCSS)
<label class="style">
<select name="weight" style="max-width:100px">
<option value="100">Thin (100)</option>
+ <option value="200">Extra Light (200)</option>
<option value="300">Light (300)</option>
<option value="400" selected>Regular (400)</option>
<option value="500">Medium (500)</option>
diff --git a/init.sh b/init.sh
index 750ab0838..2083dd9a7 100755
--- a/init.sh
+++ b/init.sh
@@ -316,6 +316,8 @@ else
derived_styles=( \
"Light : Thin Regular" \
"LightItalic : ThinItalic Italic" \
+ "ExtraLight : Thin Regular" \
+ "ExtraLightItalic : ThinItalic Italic" \
"Medium : Regular Black" \
"MediumItalic : Italic BlackItalic" \
"SemiBold : Regular Black" \
diff --git a/misc/dist/inter-ui.css b/misc/dist/inter-ui.css
index e76de090d..293ecccdd 100644
--- a/misc/dist/inter-ui.css
+++ b/misc/dist/inter-ui.css
@@ -1,6 +1,51 @@
@font-face {
font-family: 'Inter UI';
font-style: normal;
+ font-weight: 100;
+ src: url("Inter-UI-Thin.woff2") format("woff2"),
+ url("Inter-UI-Thin.woff") format("woff");
+}
+@font-face {
+ font-family: 'Inter UI';
+ font-style: italic;
+ font-weight: 100;
+ src: url("Inter-UI-ThinItalic.woff2") format("woff2"),
+ url("Inter-UI-ThinItalic.woff") format("woff");
+}
+
+@font-face {
+ font-family: 'Inter UI';
+ font-style: normal;
+ font-weight: 200;
+ src: url("Inter-UI-ExtraLight.woff2") format("woff2"),
+ url("Inter-UI-ExtraLight.woff") format("woff");
+}
+@font-face {
+ font-family: 'Inter UI';
+ font-style: italic;
+ font-weight: 200;
+ src: url("Inter-UI-ExtraLightItalic.woff2") format("woff2"),
+ url("Inter-UI-ExtraLightItalic.woff") format("woff");
+}
+
+@font-face {
+ font-family: 'Inter UI';
+ font-style: normal;
+ font-weight: 300;
+ src: url("Inter-UI-Light.woff2") format("woff2"),
+ url("Inter-UI-Light.woff") format("woff");
+}
+@font-face {
+ font-family: 'Inter UI';
+ font-style: italic;
+ font-weight: 300;
+ src: url("Inter-UI-LightItalic.woff2") format("woff2"),
+ url("Inter-UI-LightItalic.woff") format("woff");
+}
+
+@font-face {
+ font-family: 'Inter UI';
+ font-style: normal;
font-weight: 400;
src: url("Inter-UI-Regular.woff2") format("woff2"),
url("Inter-UI-Regular.woff") format("woff");
@@ -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("Inter-UI.var.woff2") format("woff2-variations"),
url("Inter-UI.var.woff2") 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("Inter-UI-upright.var.woff2") 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("Inter-UI-italic.var.woff2") format("woff2 supports variations(gvar)"),
diff --git a/misc/fontbuild b/misc/fontbuild
index 412e982b9..34888cc83 100755
--- a/misc/fontbuild
+++ b/misc/fontbuild
@@ -458,10 +458,11 @@ class Main(object):
).strip()
# Note: ots-sanitize does not exit with an error in many cases where
# it fails to sanitize the font.
- success = otssan_res.find('Failed') == -1
+ success = str(otssan_res).find('Failed') == -1
except:
success = False
- otssan_res = 'error'
+ if len(otssan_res) == 0:
+ otssan_res = 'error'
if success:
os.unlink(tmpfile)
@@ -745,7 +746,7 @@ class Main(object):
).strip()
# Note: ots-idempotent does not exit with an error in many cases where
# it fails to sanitize the font.
- if res.find('Failed') != -1:
+ if str(res).find('Failed') != -1:
log.error('[checkfont] ots-idempotent failed for %r: %s' % (
fontfile, res))
return False
diff --git a/src/Inter-UI-italic.designspace b/src/Inter-UI-italic.designspace
index 597002841..ef32dcb47 100644
--- a/src/Inter-UI-italic.designspace
+++ b/src/Inter-UI-italic.designspace
@@ -58,6 +58,35 @@
</dict>
</lib>
</instance>
+ <instance name="extralightitalic" familyname="Inter UI" stylename="Extra Light Italic" filename="../build/ufo/Inter-UI-ExtraLightItalic.ufo" stylemapfamilyname="Inter UI Extra Light" stylemapstylename="italic">
+ <location>
+ <dimension name="Weight" xvalue="200"/>
+ </location>
+ <kerning/>
+ <info/>
+ <lib>
+ <dict>
+ <key>com.schriftgestaltung.customParameters</key>
+ <array>
+ <array>
+ <string>panose</string>
+ <array>
+ <integer>2</integer>
+ <integer>11</integer>
+ <integer>3</integer>
+ <integer>2</integer>
+ <integer>3</integer>
+ <integer>0</integer>
+ <integer>0</integer>
+ <integer>0</integer>
+ <integer>0</integer>
+ <integer>4</integer>
+ </array>
+ </array>
+ </array>
+ </dict>
+ </lib>
+ </instance>
<instance name="lightitalic" familyname="Inter UI" stylename="Light Italic" filename="../build/ufo/Inter-UI-LightItalic.ufo" stylemapfamilyname="Inter UI Light" stylemapstylename="italic">
<location>
<dimension name="Weight" xvalue="300"/>
diff --git a/src/Inter-UI-upright.designspace b/src/Inter-UI-upright.designspace
index 5f7d1f47c..c758c56b3 100644
--- a/src/Inter-UI-upright.designspace
+++ b/src/Inter-UI-upright.designspace
@@ -54,6 +54,35 @@
</dict>
</lib>
</instance>
+ <instance name="extralight" familyname="Inter UI" stylename="Extra Light" filename="../build/ufo/Inter-UI-ExtraLight.ufo" stylemapfamilyname="Inter UI Extra Light" stylemapstylename="regular">
+ <location>
+ <dimension name="Weight" xvalue="200"/>
+ </location>
+ <kerning/>
+ <info/>
+ <lib>
+ <dict>
+ <key>com.schriftgestaltung.customParameters</key>
+ <array>
+ <array>
+ <string>panose</string>
+ <array>
+ <integer>2</integer>
+ <integer>11</integer>
+ <integer>3</integer>
+ <integer>2</integer>
+ <integer>3</integer>
+ <integer>0</integer>
+ <integer>0</integer>
+ <integer>0</integer>
+ <integer>0</integer>
+ <integer>4</integer>
+ </array>
+ </array>
+ </array>
+ </dict>
+ </lib>
+ </instance>
<instance name="light" familyname="Inter UI" stylename="Light" filename="../build/ufo/Inter-UI-Light.ufo" stylemapfamilyname="Inter UI Light" stylemapstylename="regular">
<location>
<dimension name="Weight" xvalue="300"/>
diff --git a/src/Inter-UI.designspace b/src/Inter-UI.designspace
index a50cc660c..d5c8b9e8f 100644
--- a/src/Inter-UI.designspace
+++ b/src/Inter-UI.designspace
@@ -111,6 +111,66 @@
</dict>
</lib>
</instance>
+ <instance name="extralight" familyname="Inter UI" stylename="Extra Light" filename="../build/ufo/Inter-UI-ExtraLight.ufo" stylemapfamilyname="Inter UI Extra Light" stylemapstylename="regular">
+ <location>
+ <dimension name="Weight" xvalue="200"/>
+ <dimension name="Slant" xvalue="0"/>
+ </location>
+ <kerning/>
+ <info/>
+ <lib>
+ <dict>
+ <key>com.schriftgestaltung.customParameters</key>
+ <array>
+ <array>
+ <string>panose</string>
+ <array>
+ <integer>2</integer>
+ <integer>11</integer>
+ <integer>3</integer>
+ <integer>2</integer>
+ <integer>3</integer>
+ <integer>0</integer>
+ <integer>0</integer>
+ <integer>0</integer>
+ <integer>0</integer>
+ <integer>4</integer>
+ </array>
+ </array>
+ </array>
+ </dict>
+ </lib>
+ </instance>
+ <instance name="extralightitalic" familyname="Inter UI" stylename="Extra Light Italic" filename="../build/ufo/Inter-UI-ExtraLightItalic.ufo" stylemapfamilyname="Inter UI Extra Light" stylemapstylename="italic">
+ <location>
+ <dimension name="Weight" xvalue="200"/>
+ <dimension name="Slant" xvalue="10"/>
+ </location>
+ <kerning/>
+ <info/>
+ <lib>
+ <dict>
+ <key>com.schriftgestaltung.customParameters</key>
+ <array>
+ <array>
+ <string>panose</string>
+ <array>
+ <integer>2</integer>
+ <integer>11</integer>
+ <integer>3</integer>
+ <integer>2</integer>
+ <integer>3</integer>
+ <integer>0</integer>
+ <integer>0</integer>
+ <integer>0</integer>
+ <integer>0</integer>
+ <integer>4</integer>
+ </array>
+ </array>
+ </array>
+ </dict>
+ </lib>
+ </instance>
<instance name="light" familyname="Inter UI" stylename="Light" filename="../build/ufo/Inter-UI-Light.ufo" stylemapfamilyname="Inter UI Light" stylemapstylename="regular">
<location>
<dimension name="Weight" xvalue="300"/>
diff --git a/src/Inter-UI.glyphs b/src/Inter-UI.glyphs
index d908dc85f..a9f2b60bd 100644
--- a/src/Inter-UI.glyphs
+++ b/src/Inter-UI.glyphs
@@ -578601,6 +578601,62 @@ name = panose;
value = (
2,
11,
+3,
+2,
+3,
+0,
+0,
+0,
+0,
+4
+);
+}
+);
+interpolationWeight = 200;
+interpolationWidth = 0;
+instanceInterpolations = {
+"B1F27B51-9973-4381-9301-4FE46FE1CA59" = 0.66667;
+"C698F293-3EC0-4A5A-A3A0-0FDB1F5CF265" = 0.33333;
+};
+name = "Extra Light";
+weightClass = ExtraLight;
+},
+{
+customParameters = (
+{
+name = panose;
+value = (
+2,
+11,
+3,
+2,
+3,
+0,
+0,
+0,
+0,
+4
+);
+}
+);
+interpolationWeight = 200;
+interpolationWidth = 10;
+instanceInterpolations = {
+"11F4534A-B963-4AB5-820F-DAF9A20CD933" = 0.33333;
+"200BE2C5-40F6-4CF4-AF4F-A33C0CC0964F" = 0.66667;
+};
+isItalic = 1;
+linkStyle = "Extra Light";
+name = "Extra Light Italic";
+weightClass = ExtraLight;
+},
+{
+customParameters = (
+{
+name = panose;
+value = (
+2,
+11,
4,
2,
3,