Created
April 16, 2020 10:50
-
-
Save frankrolf/6e0abaf960acb28423379fcca7bc0f3d to your computer and use it in GitHub Desktop.
Robofont: Set search query of frontmost font window for all font windows
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 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