Skip to content

Instantly share code, notes, and snippets.

View LettError's full-sized avatar

Erik van Blokland LettError

View GitHub Profile
@connordavenport
connordavenport / RKerning_SmartSet.py
Created February 14, 2024 16:08
An RKerning add on to allow for setting kerning pairs without having to know the group names
def smartSet(self, pair, value, exceptionType=None):
'''
pair must be a tuple, its contents can be a glyphName or a group's name
value must be an integer, why would you even kern on fractions....
exceptionType is the level of searching the function will do
None : use the top level group or glyph names, no exceptions
g2G : glyph to Group exception
g2g : glyph to glyph exception
G2g : Group to glyph exception
@frankrolf
frankrolf / ipa_characters.txt
Created September 10, 2018 15:43
Test IPA coverage in Robofont 3
# IPA
( 0028
) 0029
. 002E
/ 002F
[ 005B
] 005D
a 0061
b 0062
c 0063
@shaunlebron
shaunlebron / angleLerp.js
Created February 5, 2014 20:41
The best way to interpolate 2D angles
/*
2D Angle Interpolation (shortest distance)
Parameters:
a0 = start angle
a1 = end angle
t = interpolation factor (0.0=start, 1.0=end)
Benefits:
1. Angles do NOT need to be normalized.
@gferreira
gferreira / import-ufo-into-layer.py
Created March 28, 2012 08:09
import ufo into layer
# [h] import ufo into layer
import os
f = CurrentFont()
ufo_path = '/fonts/_Publica/_ufos/Publica_95.ufo' # path to your ufo
ufo = RFont(ufo_path, showUI=False)
layer_name = os.path.split(ufo_path)[1]