Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions scripts/instantiate-code-fonts.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

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


fontPath = glob.glob('./font-data/Recursive_VF_*.ttf')[0] # allows script to run without font path passed in.

# read yaml config
with open(configPath) as file:
Expand Down Expand Up @@ -198,7 +197,7 @@ def splitFont(
fs_selection &= 1 << 7

if instance == "Italic":

monoFont["head"].macStyle = 0b10
# In the OS/2 table Panose bProportion must be set to 11 for "oblique boxed" (this is partially a guess)
monoFont["OS/2"].panose.bLetterForm = 11
Expand Down