This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import argparse | |
from fontTools.subset import main as subsetter | |
from fontTools.ttLib import TTFont | |
from pathlib import Path | |
parser = argparse.ArgumentParser() | |
parser.add_argument('font_in', type=Path) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
from pathlib import Path | |
def solveFeatureLinking(path, container=''): | |
if not container: | |
with open(path, 'r') as inputFile: | |
container = inputFile.read() | |
pattern = re.compile(r'include\ *?\((.*)\)\ *?\;') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# this is a script that creates a .pdf of current font with given letters | |
# custom settings file can be provided in folder where the output goes to | |
import drawBot as db | |
from pathlib import Path | |
import json | |
from datetime import datetime | |
db.newDrawing() | |
db.size('A4Landscape') |