Skip to content

Instantly share code, notes, and snippets.

@jmsole
jmsole / kernproof.py
Last active April 29, 2023 19:52
Kern proof generator with Drawbot and drawbotgrid
from drawBotGrid import BaselineGrid, columnBaselineGridTextBox
import os
import datetime
import itertools
import unicodedata
# When you add more fonts, it stacks the strings for each
# weight to enable easy comparisons.
fonts = ('Helvetica Neue Thin', 'Helvetica Neue', 'Helvetica Neue Bold')
#fonts = ('Helvetica Neue Thin', 'Helvetica Neue')
import time
from random import shuffle
# ----------
# The Inputs
# ----------
pageSize = 500
maximumFrameCalculationDuration = 0.1
minimumPixelSize = 5