<?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[StemHist error]]></title><description><![CDATA[<p dir="auto">Running:</p>
<pre><code class="language-python">from mojo.compile import *

stemHist(CurrentFont().path)
</code></pre>
<p dir="auto">Produces:</p>
<pre><code class="language-console">Traceback (most recent call last):
  File '&lt;untitled&gt;', line 3, in &lt;module&gt;
  File 'mojo/compile.pyc', line 57, in stemHist
TypeError: autohint() got an unexpected keyword argument 'useCurves'
</code></pre>
<p dir="auto">Not sure if I'm doing it wrong but it seems to want a file path?<br />
There's also a typo in the docs. <code>stemHist</code> is documented as having a <code>userCurves</code> kwarg.</p>
]]></description><link>https://forum.robofont.com/topic/325/stemhist-error</link><generator>RSS for Node</generator><lastBuildDate>Thu, 14 May 2026 04:35:30 GMT</lastBuildDate><atom:link href="https://forum.robofont.com/topic/325.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 06 Jun 2014 02:41:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to StemHist error on Fri, 05 Jan 2018 22:25:20 GMT]]></title><description><![CDATA[<p dir="auto">Running:</p>
<pre><code class="language-python">from mojo.compile import *

stemHist(CurrentFont().path)
</code></pre>
<p dir="auto">Produces:</p>
<pre><code class="language-console">Traceback (most recent call last):
  File '&lt;untitled&gt;', line 3, in &lt;module&gt;
  File 'mojo/compile.pyc', line 57, in stemHist
TypeError: autohint() got an unexpected keyword argument 'useCurves'
</code></pre>
<p dir="auto">Not sure if I'm doing it wrong but it seems to want a file path?<br />
There's also a typo in the docs. <code>stemHist</code> is documented as having a <code>userCurves</code> kwarg.</p>
]]></description><link>https://forum.robofont.com/post/325</link><guid isPermaLink="true">https://forum.robofont.com/post/325</guid><dc:creator><![CDATA[jack_jennings]]></dc:creator><pubDate>Fri, 05 Jan 2018 22:25:20 GMT</pubDate></item><item><title><![CDATA[Reply to StemHist error on Fri, 05 Jan 2018 22:24:47 GMT]]></title><description><![CDATA[<p dir="auto">oh, oeps, idd typo, it was redirecting to <code>autoHint</code> instead of <code>stemHist</code>… (will be fixed in the next update)</p>
<p dir="auto"><code>stemHist</code> takes a binary path as argument.</p>
<p dir="auto">and has optional arguments:</p>
<ul>
<li>
<p dir="auto"><code>useCurves</code>=bool: Include stems formed by curved line segments; by default, includes<br />
only stems formed by straight line segments.</p>
</li>
<li>
<p dir="auto"><code>blueZones</code>=bool: Return alignment zone report rather than stem report</p>
</li>
</ul>
<p dir="auto">this is a Adobe FDK tool.</p>
<p dir="auto">The <code>mojo</code> module is just a collection of useful internal modules. You can also use this:</p>
<pre><code class="language-python">from lib.tools.compileTools import stemHist

print stemHist("binaryPath.otf", useCurves=True, blueZones=False)
</code></pre>
<p dir="auto">good luck</p>
]]></description><link>https://forum.robofont.com/post/1228</link><guid isPermaLink="true">https://forum.robofont.com/post/1228</guid><dc:creator><![CDATA[frederik]]></dc:creator><pubDate>Fri, 05 Jan 2018 22:24:47 GMT</pubDate></item></channel></rss>