<?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[mojo.canvas crashing?]]></title><description><![CDATA[<p dir="auto">Hi! I'm finding that <code>mojo.canvas</code> somehow crashes my RoboFont whenever there's an error. I don't see anything in the output window, and RF just quits. If I switch to DB's <code>drawView</code>, I can see the report in the output window (usually a <code>KeyError</code> or a <code>RoboFontError</code>).</p>
<p dir="auto">Is this a known issue, or maybe I'm implementing something incorrectly? I don't have an example right now, but can write one if needed.</p>
<p dir="auto">Thanks!</p>
]]></description><link>https://forum.robofont.com/topic/444/mojo-canvas-crashing</link><generator>RSS for Node</generator><lastBuildDate>Thu, 14 May 2026 03:52:44 GMT</lastBuildDate><atom:link href="https://forum.robofont.com/topic/444.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 07 Jan 2018 21:22:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to mojo.canvas crashing? on Thu, 11 Jan 2018 09:58:38 GMT]]></title><description><![CDATA[<p dir="auto">Hi! I'm finding that <code>mojo.canvas</code> somehow crashes my RoboFont whenever there's an error. I don't see anything in the output window, and RF just quits. If I switch to DB's <code>drawView</code>, I can see the report in the output window (usually a <code>KeyError</code> or a <code>RoboFontError</code>).</p>
<p dir="auto">Is this a known issue, or maybe I'm implementing something incorrectly? I don't have an example right now, but can write one if needed.</p>
<p dir="auto">Thanks!</p>
]]></description><link>https://forum.robofont.com/post/1475</link><guid isPermaLink="true">https://forum.robofont.com/post/1475</guid><dc:creator><![CDATA[jesentanadi]]></dc:creator><pubDate>Thu, 11 Jan 2018 09:58:38 GMT</pubDate></item><item><title><![CDATA[Reply to mojo.canvas crashing? on Mon, 08 Jan 2018 09:30:21 GMT]]></title><description><![CDATA[<p dir="auto">is there anything in the <code>robofont.log</code> (you will find this on <code>&lt;userName&gt;/library/Application Support/RoboFont</code></p>
<p dir="auto">what is your OS?</p>
<p dir="auto">thanks</p>
]]></description><link>https://forum.robofont.com/post/1476</link><guid isPermaLink="true">https://forum.robofont.com/post/1476</guid><dc:creator><![CDATA[frederik]]></dc:creator><pubDate>Mon, 08 Jan 2018 09:30:21 GMT</pubDate></item><item><title><![CDATA[Reply to mojo.canvas crashing? on Thu, 11 Jan 2018 09:54:03 GMT]]></title><description><![CDATA[<p dir="auto">Here's what the log shows.<br />
<img src="/assets/uploads/files/1515427969662-screen-shot-2018-01-08-at-11.08.30-am.png" alt="0_1515427969873_Screen Shot 2018-01-08 at 11.08.30 AM.png" class="img-responsive img-markdown" /></p>
<p dir="auto">To test this, I used the basic <code>vanilla.EditText</code> instead of SpaceCenter's <code>GlyphSequenceEditText</code>. When I get this error with DB's <code>DrawView</code>, it's logged in the Output window, but won't crash RF.</p>
<p dir="auto">I'm currently on Sierra, 10.12.6.</p>
]]></description><link>https://forum.robofont.com/post/1477</link><guid isPermaLink="true">https://forum.robofont.com/post/1477</guid><dc:creator><![CDATA[jesentanadi]]></dc:creator><pubDate>Thu, 11 Jan 2018 09:54:03 GMT</pubDate></item><item><title><![CDATA[Reply to mojo.canvas crashing? on Thu, 11 Jan 2018 09:54:29 GMT]]></title><description><![CDATA[<p dir="auto">(Of course, if I just use <code>GlyphSequenceEditText</code>, it's fine for the most part, unless I type in <code>/</code> + missing glyph.)</p>
]]></description><link>https://forum.robofont.com/post/1478</link><guid isPermaLink="true">https://forum.robofont.com/post/1478</guid><dc:creator><![CDATA[jesentanadi]]></dc:creator><pubDate>Thu, 11 Jan 2018 09:54:29 GMT</pubDate></item><item><title><![CDATA[Reply to mojo.canvas crashing? on Thu, 11 Jan 2018 09:54:51 GMT]]></title><description><![CDATA[<p dir="auto">I think I see what you are trying to do :)</p>
<p dir="auto"><code>?</code> will not be a valid glyph name... you need to convert the input string from the <code>EditText</code> object to a list of glyph names.</p>
<pre><code class="language-python">from defconAppKit.tools.textSplitter import splitText

font = CurrentFont()
print splitText(u“héllo world?”, font.getCharacterMapping(), fallback=“.notdef”)
</code></pre>
<p dir="auto">The crash happens because it goes wrong while drawing on screen and that is the worst place to raise a traceback...</p>
<p dir="auto">Good luck</p>
]]></description><link>https://forum.robofont.com/post/1479</link><guid isPermaLink="true">https://forum.robofont.com/post/1479</guid><dc:creator><![CDATA[frederik]]></dc:creator><pubDate>Thu, 11 Jan 2018 09:54:51 GMT</pubDate></item><item><title><![CDATA[Reply to mojo.canvas crashing? on Thu, 11 Jan 2018 09:55:27 GMT]]></title><description><![CDATA[<p dir="auto">Right — I understand why I got that error, but I'm curious why <code>Canvas</code> crashes but <code>DrawView</code> doesn't? It's also not specific to that error (sorry, I probably should've mentioned this earlier).</p>
<p dir="auto">Here's another example from the log:<br />
<img src="/assets/uploads/files/1515513306129-screen-shot-2018-01-09-at-10.52.16-am-resized.png" alt="0_1515513306396_Screen Shot 2018-01-09 at 10.52.16 AM.png" class="img-responsive img-markdown" /></p>
<p dir="auto">Sidenote: On top of using <code>GlyphSequenceEditText</code> (or <code>splitText</code>), I've also had to use a try/except block because while the <code>.notdef</code> fallback is returned when I type in <code>/?</code>, it doesn't do it for something like <code>/3</code>.</p>
<p dir="auto">Thanks Frederik!</p>
]]></description><link>https://forum.robofont.com/post/1480</link><guid isPermaLink="true">https://forum.robofont.com/post/1480</guid><dc:creator><![CDATA[jesentanadi]]></dc:creator><pubDate>Thu, 11 Jan 2018 09:55:27 GMT</pubDate></item><item><title><![CDATA[Reply to mojo.canvas crashing? on Thu, 11 Jan 2018 09:56:12 GMT]]></title><description><![CDATA[<p dir="auto">DrawBot only sets pdf data in the <code>DrawView</code> when the script is done. With a <code>Canvas</code> view you draw directly while its refreshing the view. The is lots faster but also fragile.</p>
<p dir="auto">Already implemented in the next RoboFont updates is that a <code>Canvas</code> object catches errors while sending notifications (like <code>draw</code>, <code>mouseDown</code>, ...) to a delegate object.</p>
]]></description><link>https://forum.robofont.com/post/1481</link><guid isPermaLink="true">https://forum.robofont.com/post/1481</guid><dc:creator><![CDATA[frederik]]></dc:creator><pubDate>Thu, 11 Jan 2018 09:56:12 GMT</pubDate></item><item><title><![CDATA[Reply to mojo.canvas crashing? on Wed, 10 Jan 2018 13:16:09 GMT]]></title><description><![CDATA[<p dir="auto">Ah, makes total sense!</p>
<p dir="auto">(I guess I should have realized the difference since I had to use DrawView's <code>setPDFDocument(pdf)</code> function... haha :smirk: )</p>
<p dir="auto">Thanks for the response. The Canvas update sounds great!</p>
]]></description><link>https://forum.robofont.com/post/1482</link><guid isPermaLink="true">https://forum.robofont.com/post/1482</guid><dc:creator><![CDATA[jesentanadi]]></dc:creator><pubDate>Wed, 10 Jan 2018 13:16:09 GMT</pubDate></item></channel></rss>