Skip to content

Instantly share code, notes, and snippets.

View ryanbugden's full-sized avatar
🏠
Working from home

Ryan Bugden ryanbugden

🏠
Working from home
View GitHub Profile
@ryanbugden
ryanbugden / scrambleSelectedGlyphs.py
Created June 8, 2020 19:25
Scramble up the glyphs you've selected
# menuTitle : Scramble Selected Glyphs
from random import choice
f = CurrentFont()
# grab selection
gs = f.selectedGlyphNames
new_assign ={}
@ryanbugden
ryanbugden / resize_fo_16_cells.py
Created May 19, 2020 17:11
try to fit 16 columns perfectly into font overview, resize window accordingly
from mojo.UI import CurrentFontWindow
from lib.tools.defaults import getDefault
'''
trying to perfectly fit 16 columns of cells across the font overview
'''
fo = CurrentFontWindow().fontOverview
gc = fo.getGlyphCollection()
v = gc.getGlyphCellView()
@ryanbugden
ryanbugden / spaceCenterTuner.py
Created May 18, 2020 18:49
A little vanilla window to help drastically change size, line-height, left padding, top padding
from mojo.UI import CurrentSpaceCenter
from vanilla import FloatingWindow, Slider, TextBox
class SpaceCenterTuner():
"""
Fine-tune Space Center sizing and spacing.
Ryan Bugden
2020.05.18
2019.06.02