Skip to content

Commit e10a1df

Browse files
committed
Merge remote-tracking branch 'origin/main'
2 parents c4f7810 + ac4f92a commit e10a1df

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

scripts/instantiate-code-fonts.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
import os
1111
import pathlib
12+
import glob
1213
from fontTools import ttLib
1314
import subprocess
1415
import shutil
@@ -35,9 +36,7 @@
3536
try:
3637
fontPath = sys.argv[2] # allows custom path to be passed in, helpful for generating new release from arrowtype/recursive dir
3738
except IndexError:
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.
4140

4241
# read yaml config
4342
with open(configPath) as file:
@@ -198,7 +197,7 @@ def splitFont(
198197
fs_selection &= 1 << 7
199198

200199
if instance == "Italic":
201-
200+
202201
monoFont["head"].macStyle = 0b10
203202
# In the OS/2 table Panose bProportion must be set to 11 for "oblique boxed" (this is partially a guess)
204203
monoFont["OS/2"].panose.bLetterForm = 11

0 commit comments

Comments
 (0)