<?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[Possible bug in lib.fontObjects.fontPartsWrappers UIdocument()? Works in v3.2, but not latest v3.3 beta.]]></title><description><![CDATA[<p dir="auto">Re: <a href="/topic/672/what-computer-performance-metrics-are-most-relevant-to-rf-performance">What computer performance metrics are most relevant to RF performance?</a></p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.robofont.com/uid/22">@gferreira</a></p>
<p dir="auto"><code>SimpleFontWindow.py</code> script was working for me really well for awhile, but has recently stopped working.</p>
<p dir="auto">When I try to run it now, I get the following:</p>
<pre><code class="language-console">Traceback (most recent call last):
  File "open-fonts-in-SimpleFontWindow.py", line 96, in &lt;module&gt;
  File "open-fonts-in-SimpleFontWindow.py", line 47, in __init__
AttributeError: 'NoneType' object has no attribute 'addWindowController_'
</code></pre>
<p dir="auto">If I place <code>help(self._font)</code> just above line 47, I get the doc string for <code>lib.fontObjects.fontPartsWrappers</code>. The first method in there is <code>UIdocument(self)</code>. However, if I instead do <code>help(self._font.UIdocument())</code>, I instead get the following:</p>
<pre><code class="language-console">Help on NoneType object:

class NoneType(object)
 |  Methods defined here:
 |  
 |  __bool__(self, /)
 |      self != 0
 |  
 |  __repr__(self, /)
 |      Return repr(self).
 |  
 |  ----------------------------------------------------------------------
 |  Static methods defined here:
 |  
 |  __new__(*args, **kwargs) from builtins.type
 |      Create and return a new object.  See help(type) for accurate signature.

Traceback (most recent call last):
  File "open-fonts-in-SimpleFontWindow.py", line 99, in &lt;module&gt;
  File "open-fonts-in-SimpleFontWindow.py", line 49, in __init__
AttributeError: 'NoneType' object has no attribute 'addWindowController_'
</code></pre>
<p dir="auto">Here's my specific code, if it's helpful: <a href="https://github.com/thundernixon/robofont--big-fonts/blob/f936ca7d4eb49113ffa5f014f253e5f6d4db7189/open-fonts-in-SimpleFontWindow.py" rel="nofollow">https://github.com/thundernixon/robofont--big-fonts/blob/f936ca7d4eb49113ffa5f014f253e5f6d4db7189/open-fonts-in-SimpleFontWindow.py</a></p>
<hr />
<p dir="auto">I'm running:</p>
<ul>
<li>RoboFont Version 3.3b (build 1910091627)</li>
<li>macOS Mojave, 10.14.5 (18F203)</li>
</ul>
]]></description><link>https://forum.robofont.com/topic/723/possible-bug-in-lib-fontobjects-fontpartswrappers-uidocument-works-in-v3-2-but-not-latest-v3-3-beta</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Apr 2026 19:03:08 GMT</lastBuildDate><atom:link href="https://forum.robofont.com/topic/723.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 04 Nov 2019 19:41:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Possible bug in lib.fontObjects.fontPartsWrappers UIdocument()? Works in v3.2, but not latest v3.3 beta. on Wed, 06 Nov 2019 11:33:17 GMT]]></title><description><![CDATA[<p dir="auto">Re: <a href="/topic/672/what-computer-performance-metrics-are-most-relevant-to-rf-performance">What computer performance metrics are most relevant to RF performance?</a></p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.robofont.com/uid/22">@gferreira</a></p>
<p dir="auto"><code>SimpleFontWindow.py</code> script was working for me really well for awhile, but has recently stopped working.</p>
<p dir="auto">When I try to run it now, I get the following:</p>
<pre><code class="language-console">Traceback (most recent call last):
  File "open-fonts-in-SimpleFontWindow.py", line 96, in &lt;module&gt;
  File "open-fonts-in-SimpleFontWindow.py", line 47, in __init__
AttributeError: 'NoneType' object has no attribute 'addWindowController_'
</code></pre>
<p dir="auto">If I place <code>help(self._font)</code> just above line 47, I get the doc string for <code>lib.fontObjects.fontPartsWrappers</code>. The first method in there is <code>UIdocument(self)</code>. However, if I instead do <code>help(self._font.UIdocument())</code>, I instead get the following:</p>
<pre><code class="language-console">Help on NoneType object:

class NoneType(object)
 |  Methods defined here:
 |  
 |  __bool__(self, /)
 |      self != 0
 |  
 |  __repr__(self, /)
 |      Return repr(self).
 |  
 |  ----------------------------------------------------------------------
 |  Static methods defined here:
 |  
 |  __new__(*args, **kwargs) from builtins.type
 |      Create and return a new object.  See help(type) for accurate signature.

Traceback (most recent call last):
  File "open-fonts-in-SimpleFontWindow.py", line 99, in &lt;module&gt;
  File "open-fonts-in-SimpleFontWindow.py", line 49, in __init__
AttributeError: 'NoneType' object has no attribute 'addWindowController_'
</code></pre>
<p dir="auto">Here's my specific code, if it's helpful: <a href="https://github.com/thundernixon/robofont--big-fonts/blob/f936ca7d4eb49113ffa5f014f253e5f6d4db7189/open-fonts-in-SimpleFontWindow.py" rel="nofollow">https://github.com/thundernixon/robofont--big-fonts/blob/f936ca7d4eb49113ffa5f014f253e5f6d4db7189/open-fonts-in-SimpleFontWindow.py</a></p>
<hr />
<p dir="auto">I'm running:</p>
<ul>
<li>RoboFont Version 3.3b (build 1910091627)</li>
<li>macOS Mojave, 10.14.5 (18F203)</li>
</ul>
]]></description><link>https://forum.robofont.com/post/2727</link><guid isPermaLink="true">https://forum.robofont.com/post/2727</guid><dc:creator><![CDATA[ArrowType]]></dc:creator><pubDate>Wed, 06 Nov 2019 11:33:17 GMT</pubDate></item><item><title><![CDATA[Reply to Possible bug in lib.fontObjects.fontPartsWrappers UIdocument()? Works in v3.2, but not latest v3.3 beta. on Tue, 05 Nov 2019 13:42:32 GMT]]></title><description><![CDATA[<p dir="auto">This should be solved in the upcoming release, and already works fine in the cutting-edge-nightly-build version...</p>
]]></description><link>https://forum.robofont.com/post/2731</link><guid isPermaLink="true">https://forum.robofont.com/post/2731</guid><dc:creator><![CDATA[frederik]]></dc:creator><pubDate>Tue, 05 Nov 2019 13:42:32 GMT</pubDate></item></channel></rss>