<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[FontDidClose event]]></title><description><![CDATA[<p dir="auto">Could be that the FontDidClose event is not properly catched by an observer?<br />
It doesn't appears either in the list when running the <code>RoboFontExamples/observers/eventObserver.py</code></p>
<pre><code class="language-python">from mojo.events import addObserver, removeObserver

class myObserver(object):
    def __init__(self):
        addObserver(self, "didOpen", "fontDidOpen")
        addObserver(self, "didClose", "fontDidClose")
        addObserver(self, "resignCurrent", "fontResignCurrent")
        
    def didOpen(self, sender):
        print "font open!"
        
    def didClose(self, sender):
        print "font close!"
        
    def resignCurrent(self, sender):
        print "not current"
        
myObserver()
</code></pre>
]]></description><link>https://forum.robofont.com/topic/280/fontdidclose-event</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Jul 2026 23:49:16 GMT</lastBuildDate><atom:link href="https://forum.robofont.com/topic/280.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 17 Sep 2013 07:53:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to FontDidClose event on Mon, 01 Jan 2018 12:35:53 GMT]]></title><description><![CDATA[<p dir="auto">Could be that the FontDidClose event is not properly catched by an observer?<br />
It doesn't appears either in the list when running the <code>RoboFontExamples/observers/eventObserver.py</code></p>
<pre><code class="language-python">from mojo.events import addObserver, removeObserver

class myObserver(object):
    def __init__(self):
        addObserver(self, "didOpen", "fontDidOpen")
        addObserver(self, "didClose", "fontDidClose")
        addObserver(self, "resignCurrent", "fontResignCurrent")
        
    def didOpen(self, sender):
        print "font open!"
        
    def didClose(self, sender):
        print "font close!"
        
    def resignCurrent(self, sender):
        print "not current"
        
myObserver()
</code></pre>
]]></description><link>https://forum.robofont.com/post/280</link><guid isPermaLink="true">https://forum.robofont.com/post/280</guid><dc:creator><![CDATA[joanca]]></dc:creator><pubDate>Mon, 01 Jan 2018 12:35:53 GMT</pubDate></item><item><title><![CDATA[Reply to FontDidClose event on Mon, 01 Jan 2018 12:36:35 GMT]]></title><description><![CDATA[<p dir="auto">Well, the thing is that I wanted to update in a vanilla popUpButton <code>AllFonts</code> when a font did close. If I do it with <code>fontWillClose</code> the font is still there.<br />
I just found it in the docs and seemed useful for what I wanted. I'll find another approach then. Thanks</p>
]]></description><link>https://forum.robofont.com/post/1103</link><guid isPermaLink="true">https://forum.robofont.com/post/1103</guid><dc:creator><![CDATA[joanca]]></dc:creator><pubDate>Mon, 01 Jan 2018 12:36:35 GMT</pubDate></item><item><title><![CDATA[Reply to FontDidClose event on Mon, 01 Jan 2018 12:37:04 GMT]]></title><description><![CDATA[<p dir="auto">I see</p>
<p dir="auto">will add a <code>fontDidClose</code> notification, but it will be a generic one: it will not send any font data cause the font is already released from memory by then.</p>
]]></description><link>https://forum.robofont.com/post/1104</link><guid isPermaLink="true">https://forum.robofont.com/post/1104</guid><dc:creator><![CDATA[frederik]]></dc:creator><pubDate>Mon, 01 Jan 2018 12:37:04 GMT</pubDate></item><item><title><![CDATA[Reply to FontDidClose event on Fri, 27 Sep 2013 09:39:58 GMT]]></title><description><![CDATA[<p dir="auto">Yes, that will work. Thanks!</p>
]]></description><link>https://forum.robofont.com/post/1105</link><guid isPermaLink="true">https://forum.robofont.com/post/1105</guid><dc:creator><![CDATA[joanca]]></dc:creator><pubDate>Fri, 27 Sep 2013 09:39:58 GMT</pubDate></item></channel></rss>