You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scripts/instantiate-code-fonts.py
+3-4Lines changed: 3 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,7 @@
9
9
10
10
importos
11
11
importpathlib
12
+
importglob
12
13
fromfontToolsimportttLib
13
14
importsubprocess
14
15
importshutil
@@ -35,9 +36,7 @@
35
36
try:
36
37
fontPath=sys.argv[2] # allows custom path to be passed in, helpful for generating new release from arrowtype/recursive dir
37
38
exceptIndexError:
38
-
fontPath="font-data/Recursive_VF_1.085.ttf"# allows script to run without font path passed in. Update this to find whatever the latest Recursive file is
39
-
40
-
39
+
fontPath=glob.glob('./font-data/Recursive_VF_*.ttf')[0] # allows script to run without font path passed in.
41
40
42
41
# read yaml config
43
42
withopen(configPath) asfile:
@@ -198,7 +197,7 @@ def splitFont(
198
197
fs_selection&=1<<7
199
198
200
199
ifinstance=="Italic":
201
-
200
+
202
201
monoFont["head"].macStyle=0b10
203
202
# In the OS/2 table Panose bProportion must be set to 11 for "oblique boxed" (this is partially a guess)
0 commit comments