Skip to content

Instantly share code, notes, and snippets.

View jenskutilek's full-sized avatar

Jens Kutilek jenskutilek

View GitHub Profile
@jenskutilek
jenskutilek / TrueType Collection.tcl
Last active June 19, 2026 16:32
TrueType Collection template for Hex Fiend
big_endian
section "Header"
ascii 4 ttcTag
set majorVersion [uint16 "majorVersion"]
uint16 minorVersion
set numFonts [uint32 "Number of Fonts"]
@jenskutilek
jenskutilek / settings.json
Last active August 20, 2026 17:20
VSCode settings
{
"breadcrumbs.filePath": "off",
"diffEditor.maxComputationTime": 0,
"editor.acceptSuggestionOnCommitCharacter": false,
"editor.codeLens": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.fontFamily": "Sudo Var, Triplicate T4c, Conta Mono, 'Intel One Mono', CorpidMono, Menlo, Monaco, 'Courier New', monospace",
"editor.fontVariations": "'wght' 340, 'wdth' 98, 'YTDE' -231, 'ital' 0, 'XTRA' 366, 'XTAB' 538",
"editor.fontLigatures": "'calt' 1, 'CODE' 0, 'lnum' 1, 'zero' 0, 'cv01' 0, 'cv02' 0, 'cv03' 0, 'cv04' 0, 'cv05' 0, 'cv06' 0, 'cv07' 0, 'cv08' 0, 'cv09' 1, 'ss04' 0, 'kern' 0",
"editor.fontSize": 13,
@jenskutilek
jenskutilek / yet.py
Created February 18, 2021 20:30
Typeface description generator
from random import choices
adjectives = """abandoned
able
absolute
adorable
adventurous
academic
acceptable
acclaimed
import codecs
def afdko_escape_handler(exc):
if not isinstance(exc, UnicodeEncodeError):
raise TypeError("don't know how to handle %r" % exc)
result = []
for c in exc.object[exc.start:exc.end]:
result.append(r"\%04x" % ord(c))
return ("".join(result), exc.end)
set rtp+=~/Library/Python/3.7/lib/python/site-packages/powerline/bindings/vim/
set laststatus=2
set t_Co=256
filetype plugin indent on
syntax on
language en_GB
set mouse=r
@jenskutilek
jenskutilek / fl_minimal.ufo.htic
Created May 23, 2019 08:17
HTIC assembly instructions example
flags {
# As seen on VTT
X 1 # X X axis
Y 0 # Y Y axis
O 1 # O Use original outline
N 0 # N Use gridfitted outline
R 1 # R Round distance; or perpendicular to line
r 0 # r Do not round distance; or parallel to line
M 1 # M Set rp0 to point number on the stack
m 0 # m Do not set rp0
@jenskutilek
jenskutilek / avar-slant.py
Last active May 8, 2024 21:53
Axis variation mapping generator for the slant axis
#!/usr/bin/env python
# coding: utf-8
from __future__ import division, print_function
from math import atan, pi, tan
# Spit out some mappings for the slant axis to get closer to actual degrees.
#print(angle,
# atan(
# tan(slant * pi / 180) / (slant / angle)
from defcon import Font
from fontTools.pens.cocoaPen import CocoaPen
from drawBot.drawBotDrawingTools import _drawBotDrawingTool
def drawGlyph(glyph):
pen = CocoaPen(glyph.getParent())
glyph.draw(pen)
path = pen.path
_drawBotDrawingTool.drawPath(path)