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
# menuTitle: Glyph Recipes | |
recipes = { | |
# Desired name, and recipe of what glyphs go in there | |
"fi": ('f', 'i'), | |
"f_l": ('f', 'l') | |
} | |
f = CurrentFont() |
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
# menuTitle: Scale While Slanted | |
import ezui | |
from mojo.extensions import getExtensionDefault, setExtensionDefault | |
from fontTools.misc.transform import Transform | |
from math import radians | |
EXTENSION_KEY = "com.ryanbugden.scaleWhileSlanted.settings" | |
EXTENSION_DEFAULTS = { |
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
# menuTitle: Event Subscriber | |
''' | |
A Subscriber-based version of eventObserver. | |
Useful for tracking internal notifications and using it for tool-building. | |
2024.01.22 — Ryan Bugden | |
2024.01.23 — Made a lot faster by Tal Leming. Thanks! | |
''' |
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
# menuTitle: Cherry Picker | |
import ezui | |
from mojo.extensions import ExtensionBundle | |
from AppKit import NSApp | |
def safe_mode_state(): | |
obj = NSApp().mainMenu().itemWithTitle_("Safe Mode...") |
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
# menuTitle: Set the Latest Kern Value | |
# shortCut: pagedown | |
from mojo.UI import getDefault | |
import metricsMachine as mm | |
KERN_VALUE_LIB_KEY = 'com.ryanbugden.storeLatestKernValue.kernValue' | |
def get_kern_group(f, glyph, side): | |
if side == 'left': |
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
# menuTitle: I Finished the Typeface. | |
from mojo.UI import CurrentFontWindow | |
import math | |
import time | |
f = CurrentFont() | |
fo = CurrentFontWindow().fontOverview | |
v = fo.getGlyphCollection().getGlyphCellView() |
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
# menuTitle: Unicorn | |
import ezui | |
from mojo.extensions import setExtensionDefault, getExtensionDefault | |
from glyphNameFormatter.reader import u2n, u2U, U2u, n2u | |
EXTENSION_KEY = "com.ryanbugden.unicorn.settings" | |
class Unicorn(ezui.WindowController): |
NewerOlder