Skip to content

Instantly share code, notes, and snippets.

@frankrolf
Created April 16, 2020 10:50
Show Gist options
  • Save frankrolf/6e0abaf960acb28423379fcca7bc0f3d to your computer and use it in GitHub Desktop.
Save frankrolf/6e0abaf960acb28423379fcca7bc0f3d to your computer and use it in GitHub Desktop.
Robofont: Set search query of frontmost font window for all font windows
'''
Set search query of frontmost font window in all font windows
'''
from mojo.UI import AllFontWindows, CurrentFontWindow
current_window = CurrentFontWindow()
current_query = current_window.getGlyphCollection().getQuery()
for font_window in AllFontWindows():
font_window.getGlyphCollection().setQuery(current_query)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment