jca
(Joancarles Casasin)
1
Hi, is it possible to access the search field (via scripting)?
I’d like to:
- Set the search from a script.
- Select some glyphs related to the search found glyphs (not the found ones, of course).
- Show those related in the Font view (selected)
Is this possible? Any help will be appreciated. Thanks!
This can be done like this:
Font.fontView.glyphSearchField().setStringValue_("Ad")
Font.fontView.filterGlyphs_(None)
print("visible glyphs", Font.fontView.glyphsArrayController().arrangedObjects())
Font.fontView.glyphsArrayController().setSelectedObjects_([Font.glyphs["Adieresis"], Font.glyphs["adieresis"]])