<?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[Robofab.pens.filterPen]]></title><description><![CDATA[<p dir="auto">This is not working, gives a traceback and the glyph flies away.<br />
Any clue to make it work?</p>
<p dir="auto">Thanks,        --jca</p>
<pre><code class="language-python">from robofab.pens.filterPen import thresholdGlyph

d = 10
thresholdGlyph(CurrentGlyph(), d)

CurrentGlyph().update()
</code></pre>
<p dir="auto">Traceback:</p>
<pre><code class="language-console">...
  File "/Users/joanca/type apps/RoboFont.app/Contents/Resources/lib/python2.7/robofab/pens/filterPen.py", line 68, in thresholdGlyph
  File "lib/fontObjects/robofabWrapper.pyc", line 2303, in appendGlyph
AttributeError: 'dict' object has no attribute 'disableNotifications'
</code></pre>
]]></description><link>https://forum.robofont.com/topic/140/robofab-pens-filterpen</link><generator>RSS for Node</generator><lastBuildDate>Wed, 12 Aug 2026 06:20:04 GMT</lastBuildDate><atom:link href="https://forum.robofont.com/topic/140.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 07 Jun 2012 08:29:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Robofab.pens.filterPen on Mon, 01 Jan 2018 02:12:26 GMT]]></title><description><![CDATA[<p dir="auto">This is not working, gives a traceback and the glyph flies away.<br />
Any clue to make it work?</p>
<p dir="auto">Thanks,        --jca</p>
<pre><code class="language-python">from robofab.pens.filterPen import thresholdGlyph

d = 10
thresholdGlyph(CurrentGlyph(), d)

CurrentGlyph().update()
</code></pre>
<p dir="auto">Traceback:</p>
<pre><code class="language-console">...
  File "/Users/joanca/type apps/RoboFont.app/Contents/Resources/lib/python2.7/robofab/pens/filterPen.py", line 68, in thresholdGlyph
  File "lib/fontObjects/robofabWrapper.pyc", line 2303, in appendGlyph
AttributeError: 'dict' object has no attribute 'disableNotifications'
</code></pre>
]]></description><link>https://forum.robofont.com/post/140</link><guid isPermaLink="true">https://forum.robofont.com/post/140</guid><dc:creator><![CDATA[joanca]]></dc:creator><pubDate>Mon, 01 Jan 2018 02:12:26 GMT</pubDate></item><item><title><![CDATA[Reply to Robofab.pens.filterPen on Mon, 01 Jan 2018 02:13:10 GMT]]></title><description><![CDATA[<p dir="auto">that is a bug, and already solved in the beta, will be in the next release</p>
<p dir="auto">a workaround:</p>
<pre><code class="language-python">from robofab.pens.filterPen import ThresholdPen

tempGlyph = RGlyph()
glyph = CurrentGlyph()

pen = ThresholdPen(tempGlyph.getPen(), threshold=10)

glyph.draw(pen)

glyph.clear()

glyph.appendGlyph(tempGlyph)
print "done"
</code></pre>
<p dir="auto">good luck</p>
]]></description><link>https://forum.robofont.com/post/755</link><guid isPermaLink="true">https://forum.robofont.com/post/755</guid><dc:creator><![CDATA[frederik]]></dc:creator><pubDate>Mon, 01 Jan 2018 02:13:10 GMT</pubDate></item></channel></rss>