<?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[RemoveOverlap() error on glyph copy]]></title><description><![CDATA[<p dir="auto">I am trying to perform remove overlap on a copy of a glyph, and get an error.  Remove overlap works fine on normal glyphs, though.</p>
<p dir="auto">Is this a bug, or is there a reason that parentless glyph copies can't remove overlap?</p>
<p dir="auto">For example:</p>
<pre><code class="language-python">g = CurrentGlyph()
gCopy = g.copy()
print g, gCopy           # to show these are not None
g.removeOverlap()        # works okay
gCopy.removeOverlap()
</code></pre>
<p dir="auto">Output:</p>
<pre><code class="language-console">Traceback (most recent call last):
  File "", line 5, in 
  File "lib/fontObjects/robofabWrapper.pyc", line 2128, in removeOverlap
  File "lib/tools/removeOverlap.pyc", line 35, in removeOverlap
  File "lib/fontObjects/doodleBaseGlyph.pyc", line 141, in _get_segmentType
AttributeError: 'NoneType' object has no attribute 'segmentType'
</code></pre>
<p dir="auto">Thanks!</p>
]]></description><link>https://forum.robofont.com/topic/77/removeoverlap-error-on-glyph-copy</link><generator>RSS for Node</generator><lastBuildDate>Wed, 12 Aug 2026 06:18:32 GMT</lastBuildDate><atom:link href="https://forum.robofont.com/topic/77.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 23 Dec 2011 21:25:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to RemoveOverlap() error on glyph copy on Sun, 31 Dec 2017 22:14:09 GMT]]></title><description><![CDATA[<p dir="auto">I am trying to perform remove overlap on a copy of a glyph, and get an error.  Remove overlap works fine on normal glyphs, though.</p>
<p dir="auto">Is this a bug, or is there a reason that parentless glyph copies can't remove overlap?</p>
<p dir="auto">For example:</p>
<pre><code class="language-python">g = CurrentGlyph()
gCopy = g.copy()
print g, gCopy           # to show these are not None
g.removeOverlap()        # works okay
gCopy.removeOverlap()
</code></pre>
<p dir="auto">Output:</p>
<pre><code class="language-console">Traceback (most recent call last):
  File "", line 5, in 
  File "lib/fontObjects/robofabWrapper.pyc", line 2128, in removeOverlap
  File "lib/tools/removeOverlap.pyc", line 35, in removeOverlap
  File "lib/fontObjects/doodleBaseGlyph.pyc", line 141, in _get_segmentType
AttributeError: 'NoneType' object has no attribute 'segmentType'
</code></pre>
<p dir="auto">Thanks!</p>
]]></description><link>https://forum.robofont.com/post/77</link><guid isPermaLink="true">https://forum.robofont.com/post/77</guid><dc:creator><![CDATA[djr]]></dc:creator><pubDate>Sun, 31 Dec 2017 22:14:09 GMT</pubDate></item><item><title><![CDATA[Reply to RemoveOverlap() error on glyph copy on Sun, 31 Dec 2017 22:15:50 GMT]]></title><description><![CDATA[<p dir="auto">ah typo bug, thanks for posting</p>
<p dir="auto">a temporarily workaround could be could be</p>
<pre><code class="language-python">g = CurrentGlyph()

# create a copy layer and copy the glyph to that layer 
gCopy = g.copyToLayer("copyLayer")

print g, gCopy # to show these are not None
print gCopy.getParent()

g.removeOverlap() # works okay
gCopy.removeOverlap()
</code></pre>
<p dir="auto">(edited your post a bit)</p>
]]></description><link>https://forum.robofont.com/post/554</link><guid isPermaLink="true">https://forum.robofont.com/post/554</guid><dc:creator><![CDATA[frederik]]></dc:creator><pubDate>Sun, 31 Dec 2017 22:15:50 GMT</pubDate></item><item><title><![CDATA[Reply to RemoveOverlap() error on glyph copy on Fri, 23 Dec 2011 22:43:47 GMT]]></title><description><![CDATA[<p dir="auto">thanks frederik! that workaround will certainly do for now...</p>
]]></description><link>https://forum.robofont.com/post/555</link><guid isPermaLink="true">https://forum.robofont.com/post/555</guid><dc:creator><![CDATA[djr]]></dc:creator><pubDate>Fri, 23 Dec 2011 22:43:47 GMT</pubDate></item></channel></rss>