This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# menuTitle : Headless RoboFont | |
import os | |
import AppKit | |
import ezui | |
from mojo.extensions import getExtensionDefault, setExtensionDefault | |
from mojo.subscriber import Subscriber, registerRoboFontSubscriber | |
from mojo.UI import AskString, OpenGlyphWindow, OpenSpaceCenter, OpenFontInfoSheet | |
defaults_key = 'com.typemytype.headLessRoboFont.glyphName' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from vanilla import * | |
from AppKit import NSEvent, NSShiftKeyMask, NSCommandKeyMask, NSAlternateKeyMask, NSControlKeyMask | |
class Test_Only_CheckBox(): | |
def __init__(self): | |
u = 22 | |
self.w = Window((250, u*10), 'Test_Only_CheckBox') | |
self.w.check_0 = CheckBox((5, u*0, -5, u), 'Check 0', value=True, callback=self.checks) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# script for drawbot extension in robofont | |
# draws a fitted / interpolating image from a responsive lettering ufo | |
# [email protected] / 20231204 | |
def ip(a, b, f): | |
return a + f * (b-a) | |
page = (659, 500) # image size | |
margin = 59 # nice to have a margin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from fontTools.pens.pointPen import ( | |
AbstractPointPen, | |
GuessSmoothPointPen | |
) | |
from fontParts.base.bPoint import ( | |
relativeBCPIn, | |
absoluteBCPIn, | |
relativeBCPOut, | |
absoluteBCPOut | |
) |
OlderNewer