SOLVED Check if open font has UI?
rdmcmurray last edited by gferreira
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.
yes, see RFont.hasInterface()
f = OpenFont(ufoPath, showInterface=False) if not f.hasInterface(): f.openInterface()
rdmcmurray last edited by rdmcmurray
Thank you @gferreira! I was calling showInterface as a property of the font itself which obviously didn't get me very far!