Skip to content

Instantly share code, notes, and snippets.

View frankrolf's full-sized avatar
😸
meow

Frank Grießhammer frankrolf

😸
meow
View GitHub Profile
@frankrolf
frankrolf / redraw_for_start_point.py
Last active October 22, 2025 16:40
Avoid off-curve start points in UFO files
'''
Avoid offcurve start points
'''
from fontTools.ufoLib.pointPen import PointToSegmentPen
def find_offcurve_start(glyph):
'''
compare coordinates of first bPoint to coordinates of first point
@frankrolf
frankrolf / find_shortkeys.py
Created May 16, 2024 09:15
Robofont: which shortkeys are assigned to what action?
'''
Robofont: which shortkeys are assigned to what action?
'''
import AppKit
import itertools
import mojo
import re
from pathlib import Path
@frankrolf
frankrolf / contextual_filters.py
Created June 16, 2025 11:06
Contextual menu items for RoboFont’s font overview window
'''
Contextual menu items for RoboFont’s font overview window
'''
from AppKit import NSPredicate
from mojo import smartSet
from mojo.roboFont import CurrentFont
from mojo.subscriber import (
getRegisteredSubscriberEvents,
@frankrolf
frankrolf / glyphset.txt
Created September 17, 2025 18:25
Fontra test glyph set
a b c
uni2318
'''
I never understand affine transformations, which is why I made this little
script here.
basic docs:
https://fonttools.readthedocs.io/en/latest/misc/transform.html
rf docs (explains how to convert normal operations (rotate, scale) to
affine transformations):
https://doc.robofont.com/documentation/topics/transformations/
@frankrolf
frankrolf / FDK 2026 notes.md
Last active February 6, 2026 15:15
FDK notes and commands KABK 2026
@frankrolf
frankrolf / ramsayController.py
Created March 13, 2026 16:24
Robofont: contextual menu to edit RamsaySt neighbors directly in the glyph window
"""
contextual menu entry to edit RamsaySt neighbors directly in the glyph window
"""
import objc
import ezui
from AppKit import NSObject
from mojo.subscriber import Subscriber, registerGlyphEditorSubscriber
from lib.tools.debugTools import ClassNameIncrementer