Skip to content

Instantly share code, notes, and snippets.

@cjdunn
cjdunn / Latin_S.glyphConstruction
Last active February 16, 2022 17:01
glyphConstruction file for Latin S character set
### These are Glyph Construction formulas by CJ Dunn (www.CJType.com) used to support
### Latin S character set as defined by Christoph Koeberlin here: https://github.com/koeberlin/Latin-Character-Sets
###
### I use these with the Glyph Construction extension for Robofont: https://github.com/typemytype/GlyphConstruction/tree/master/GlyphConstruction.roboFontExt
###
### variables start with a dollar sign and to use them put the name between curly brackets
### offset for accents for uc and lc, change values for each style
$top_uc = `O:top+37`
$top_lc = `o:top+48`
### anchor names variables are below
@cjdunn
cjdunn / MM2SpaceCenter_v4.9.py
Last active March 16, 2020 10:55
MM2SpaceCenter_v4.9.py
# MM2SpaceCenter by CJ Dunn, 2019, and licensed under the MIT license. Thanks to Tal Leming, Andy Clymer, David Jonathan Ross, Jackson Cavanaugh, Nina Stössinger for help and inspiration with this script
# #when pair changes: get pair and set to space center
#you must have a UFO open and have MetricsMachine open
import sys, os
import random
from mojo.UI import CurrentSpaceCenter, OpenSpaceCenter
@cjdunn
cjdunn / removeSelectedOffcurvesInAllFonts
Created March 12, 2020 19:43
removes selected off-curve points for AllFonts() so they are still VF compatible
# removes selected off-curve points for AllFonts() so they are still VF compatible
def segment2line(glyph, index, ):
c, s = index
contour = glyph[c]
segment = contour[s]
segment.type = "line"
glyph = CurrentGlyph()
selection = glyph.selection