SOLVED Check if open font has UI?
-
Is there a method to check if a font has an open window in Python? Or alternatively, what font a window represents?
I am building an extension that allows for fonts to be opened without UI, but also acts on fonts that may have open windows. When closing the extension, it should close it's own opened UI-less fonts, but not those with other UI.
-
Thank you @gferreira! I was calling showInterface as a property of the font itself which obviously didn't get me very far!
-
hi @rdmcmurray,
yes, see RFont.hasInterface()
f = OpenFont(ufoPath, showInterface=False) if not f.hasInterface(): f.openInterface()
cheers!