summaryrefslogtreecommitdiff
path: root/misc
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 /misc
parent9bb34a8fa6309c51893dce952375909c11250638 (diff)
downloadinter-2b20e67cae0dec661647e3e16d80734f03eb45cb.tar.xz
adds extra light weight to build system
Diffstat (limited to 'misc')
-rw-r--r--misc/dist/inter-ui.css51
-rwxr-xr-xmisc/fontbuild7
2 files changed, 52 insertions, 6 deletions
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