Skip to content

Instantly share code, notes, and snippets.

@mathieureguer
Created April 20, 2020 14:18
Show Gist options
  • Save mathieureguer/4c51653a71465b43ddcca9ed26a3e38b to your computer and use it in GitHub Desktop.
Save mathieureguer/4c51653a71465b43ddcca9ed26a3e38b to your computer and use it in GitHub Desktop.
"""
Open a bunch of ufos, select a bunch of interestng glyphs in a font window and run this.
As a nice bonus, this is also a way to reduce the scope of the the next and previous glyph hotkeys.
"""
from mojo.UI import SmartSet, AllFontWindows
f = CurrentFont()
for w in AllFontWindows():
w.setGlyphNamesAsSet(f.selection)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment