summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
Diffstat (limited to 'misc')
-rw-r--r--misc/dist/inter.css21
-rwxr-xr-xmisc/tools/kernsample.py4
2 files changed, 23 insertions, 2 deletions
diff --git a/misc/dist/inter.css b/misc/dist/inter.css
index dc7645793..4f1ef60d9 100644
--- a/misc/dist/inter.css
+++ b/misc/dist/inter.css
@@ -2,6 +2,7 @@
font-family: 'Inter';
font-style: normal;
font-weight: 100;
+ font-display: swap;
src: url("Inter-Thin-BETA.woff2") format("woff2"),
url("Inter-Thin-BETA.woff") format("woff");
}
@@ -9,6 +10,7 @@
font-family: 'Inter';
font-style: italic;
font-weight: 100;
+ font-display: swap;
src: url("Inter-ThinItalic-BETA.woff2") format("woff2"),
url("Inter-ThinItalic-BETA.woff") format("woff");
}
@@ -17,6 +19,7 @@
font-family: 'Inter';
font-style: normal;
font-weight: 200;
+ font-display: swap;
src: url("Inter-ExtraLight-BETA.woff2") format("woff2"),
url("Inter-ExtraLight-BETA.woff") format("woff");
}
@@ -24,6 +27,7 @@
font-family: 'Inter';
font-style: italic;
font-weight: 200;
+ font-display: swap;
src: url("Inter-ExtraLightItalic-BETA.woff2") format("woff2"),
url("Inter-ExtraLightItalic-BETA.woff") format("woff");
}
@@ -32,6 +36,7 @@
font-family: 'Inter';
font-style: normal;
font-weight: 300;
+ font-display: swap;
src: url("Inter-Light-BETA.woff2") format("woff2"),
url("Inter-Light-BETA.woff") format("woff");
}
@@ -39,6 +44,7 @@
font-family: 'Inter';
font-style: italic;
font-weight: 300;
+ font-display: swap;
src: url("Inter-LightItalic-BETA.woff2") format("woff2"),
url("Inter-LightItalic-BETA.woff") format("woff");
}
@@ -47,6 +53,7 @@
font-family: 'Inter';
font-style: normal;
font-weight: 400;
+ font-display: swap;
src: url("Inter-Regular.woff2") format("woff2"),
url("Inter-Regular.woff") format("woff");
}
@@ -54,6 +61,7 @@
font-family: 'Inter';
font-style: italic;
font-weight: 400;
+ font-display: swap;
src: url("Inter-Italic.woff2") format("woff2"),
url("Inter-Italic.woff") format("woff");
}
@@ -62,6 +70,7 @@
font-family: 'Inter';
font-style: normal;
font-weight: 500;
+ font-display: swap;
src: url("Inter-Medium.woff2") format("woff2"),
url("Inter-Medium.woff") format("woff");
}
@@ -69,6 +78,7 @@
font-family: 'Inter';
font-style: italic;
font-weight: 500;
+ font-display: swap;
src: url("Inter-MediumItalic.woff2") format("woff2"),
url("Inter-MediumItalic.woff") format("woff");
}
@@ -77,6 +87,7 @@
font-family: 'Inter';
font-style: normal;
font-weight: 600;
+ font-display: swap;
src: url("Inter-SemiBold.woff2") format("woff2"),
url("Inter-SemiBold.woff") format("woff");
}
@@ -84,6 +95,7 @@
font-family: 'Inter';
font-style: italic;
font-weight: 600;
+ font-display: swap;
src: url("Inter-SemiBoldItalic.woff2") format("woff2"),
url("Inter-SemiBoldItalic.woff") format("woff");
}
@@ -92,6 +104,7 @@
font-family: 'Inter';
font-style: normal;
font-weight: 700;
+ font-display: swap;
src: url("Inter-Bold.woff2") format("woff2"),
url("Inter-Bold.woff") format("woff");
}
@@ -99,6 +112,7 @@
font-family: 'Inter';
font-style: italic;
font-weight: 700;
+ font-display: swap;
src: url("Inter-BoldItalic.woff2") format("woff2"),
url("Inter-BoldItalic.woff") format("woff");
}
@@ -107,6 +121,7 @@
font-family: 'Inter';
font-style: normal;
font-weight: 800;
+ font-display: swap;
src: url("Inter-ExtraBold.woff2") format("woff2"),
url("Inter-ExtraBold.woff") format("woff");
}
@@ -114,6 +129,7 @@
font-family: 'Inter';
font-style: italic;
font-weight: 800;
+ font-display: swap;
src: url("Inter-ExtraBoldItalic.woff2") format("woff2"),
url("Inter-ExtraBoldItalic.woff") format("woff");
}
@@ -122,6 +138,7 @@
font-family: 'Inter';
font-style: normal;
font-weight: 900;
+ font-display: swap;
src: url("Inter-Black.woff2") format("woff2"),
url("Inter-Black.woff") format("woff");
}
@@ -129,6 +146,7 @@
font-family: 'Inter';
font-style: italic;
font-weight: 900;
+ font-display: swap;
src: url("Inter-BlackItalic.woff2") format("woff2"),
url("Inter-BlackItalic.woff") format("woff");
}
@@ -145,6 +163,7 @@ Usage:
@font-face {
font-family: 'Inter var';
font-weight: 100 900;
+ font-display: swap;
font-style: normal;
font-named-instance: 'Regular';
src: url("Inter-upright.var.woff2") format("woff2");
@@ -152,6 +171,7 @@ Usage:
@font-face {
font-family: 'Inter var';
font-weight: 100 900;
+ font-display: swap;
font-style: italic;
font-named-instance: 'Italic';
src: url("Inter-italic.var.woff2") format("woff2");
@@ -174,6 +194,7 @@ explicitly, e.g.
@font-face {
font-family: 'Inter var experimental';
font-weight: 100 900;
+ font-display: swap;
font-style: oblique 0deg 10deg;
src: url("Inter.var.woff2") format("woff2");
}
diff --git a/misc/tools/kernsample.py b/misc/tools/kernsample.py
index 7e1fbe0f8..b006a6ab3 100755
--- a/misc/tools/kernsample.py
+++ b/misc/tools/kernsample.py
@@ -4,7 +4,7 @@ from __future__ import print_function
import os, sys, plistlib
from collections import OrderedDict
from argparse import ArgumentParser
-from robofab.objects.objectsRF import OpenFont
+from defcon import Font
RIGHT = 1
LEFT = 2
@@ -201,7 +201,7 @@ def main():
args = argparser.parse_args()
- font = OpenFont(args.fontPath)
+ font = Font(args.fontPath)
groupsFilename = os.path.join(args.fontPath, 'groups.plist')
kerningFilename = os.path.join(args.fontPath, 'kerning.plist')