Skip to content

Instantly share code, notes, and snippets.

@epilys
Last active April 21, 2019 11:08
Show Gist options
  • Save epilys/95869773037d3d2235d324bd5a0484e5 to your computer and use it in GitHub Desktop.
Save epilys/95869773037d3d2235d324bd5a0484e5 to your computer and use it in GitHub Desktop.
https://www.masswerk.at/nowgobang/2019/dec-crt-typography Simulate dot stretching in DECTerminalModern.ttf
# invocation: fontforge -lang=py -script dec_fontforge.py
from fontforge import *
scale_matrix = psMat.scale(1.125, 1)
font = fontforge.open("_decterm.ttf")
font.selection.all()
font.transform(scale_matrix)
font.generate("_decterm.otf")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment