This file contains 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
# jackson@okaytype.com | |
### requires an icon file toolGoMetrics.pdf in the same folder | |
# download it from www.theharrietseries.com/crypt/robofont/toolGoMetrics.pdf | |
### updated 2013/03/10 — linked to didfontopen observers, just set as a startup script | |
### updated 2013/07/16 — fixed lame selection traceback and broken spacecenter adjustments | |
# to do: adjust by percent, uniform adjust, remember last setting | |
import os | |
from vanilla import * | |
from mojo.UI import CurrentFontWindow, CurrentSpaceCenter |
This file contains 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
# Ventriloquist - Build 0.1 | |
# insert a dummy dsig table with unique numbers into .otf fonts | |
# the idea is to kill two birds with one stone | |
# this idea needs lots of testing | |
# to do: add SerialDump[] to a txt file for record keeping | |
# | |
# jackson@okaytype.com | |
from fontTools.ttLib import TTFont | |
from mojo.compile import * |
This file contains 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
# jackson @ okaytype.com | |
# simpler big glyph preview window v3 | |
from vanilla import Window | |
from defconAppKit.windows.baseWindow import BaseWindowController | |
from mojo import events | |
from mojo.events import addObserver, removeObserver | |
from mojo.glyphPreview import GlyphPreview | |
class BigGlyphPreview(BaseWindowController): |
This file contains 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 Window, Box | |
from defconAppKit.windows.baseWindow import BaseWindowController | |
from AppKit import NSColor, NSView, NSRectFill | |
class BigBox(BaseWindowController): | |
def __init__(self): |
This file contains 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
# jackson | |
# okaytype.com | |
# v0.3 28 Nov 15 | |
# uses Version Minor to increment font names i.e.: | |
# Family Name v1 | |
from vanilla import * | |
import os | |
from robofab.interface.all.dialogs import GetFolder |
This file contains 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
# set as a startup script | |
# jackson at okaytype.com | |
# issues: sometimes doesn't update one font | |
# issues: needs some more testing to make sure it's not slowing things down | |
# next: add more settings, increase efficiency | |
from mojo.UI import AllSpaceCenters, CurrentSpaceCenter | |
from mojo.events import addObserver, removeObserver | |
from vanilla import * |
This file contains 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 mojo.UI import CurrentSpaceCenter | |
f = CurrentFont() | |
sc = CurrentSpaceCenter() | |
s = '' | |
for g in f.selectedGlyphNames: | |
s += '/' + f[g].name | |
for x in f.lib['public.glyphOrder']: | |
if f[x].name != f[g].name: |
This file contains 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 mojo.UI import CurrentSpaceCenter | |
f = CurrentFont() | |
sc = CurrentSpaceCenter() | |
s = '' | |
for g in f.selectedGlyphNames: | |
n = 0 | |
for x in f.lib['public.glyphOrder']: | |
if n == 0: |
This file contains 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
# remove the layer dropdown from robofont's space center toolbar | |
from mojo.UI import CurrentSpaceCenter | |
from mojo.events import addObserver, removeObserver | |
class NoLayerSpaceCenter(object): | |
def __init__(self): | |
addObserver(self, 'NoLayerMenu', 'spaceCenterDidOpen') |
This file contains 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
# Go to the previous line of Input Text in Robofont's Space Center | |
from mojo.UI import CurrentSpaceCenter | |
from difflib import get_close_matches | |
class SpacecenterPrevious(object): | |
def __init__(self): | |
sp = CurrentSpaceCenter() | |
tgli = sp.top.glyphLineInput | |
items = tgli.getItems() |
OlderNewer