<?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[Unrounded glyph widths in an interpolated UFO?]]></title><description><![CDATA[<p dir="auto">Hello! I'm trying to get an unrounded interpolation that I then want to use as a master in a subsequent interpolation. I'm currently using <code>font.interpolate()</code> with <code>round=False</code>. In the generated UFO the points are unrounded but the glyph widths are rounded. Is there a way I can also get unrounded widths? Thank you!</p>
]]></description><link>https://forum.robofont.com/topic/845/unrounded-glyph-widths-in-an-interpolated-ufo</link><generator>RSS for Node</generator><lastBuildDate>Thu, 05 Mar 2026 20:44:14 GMT</lastBuildDate><atom:link href="https://forum.robofont.com/topic/845.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 21 Apr 2020 17:07:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Unrounded glyph widths in an interpolated UFO? on Wed, 22 Apr 2020 09:58:01 GMT]]></title><description><![CDATA[<p dir="auto">Hello! I'm trying to get an unrounded interpolation that I then want to use as a master in a subsequent interpolation. I'm currently using <code>font.interpolate()</code> with <code>round=False</code>. In the generated UFO the points are unrounded but the glyph widths are rounded. Is there a way I can also get unrounded widths? Thank you!</p>
]]></description><link>https://forum.robofont.com/post/3235</link><guid isPermaLink="true">https://forum.robofont.com/post/3235</guid><dc:creator><![CDATA[grahambradley]]></dc:creator><pubDate>Wed, 22 Apr 2020 09:58:01 GMT</pubDate></item><item><title><![CDATA[Reply to Unrounded glyph widths in an interpolated UFO? on Wed, 22 Apr 2020 10:27:51 GMT]]></title><description><![CDATA[<p dir="auto">hello <a class="plugin-mentions-user plugin-mentions-a" href="https://forum.robofont.com/uid/361">@grahambradley</a>,</p>
<p dir="auto">interpolation with <code>round=False</code> will correctly produce <code>glyph.width</code> as a float if (and only if) your <em>Snap points</em> setting is zero. (in <a href="https://robofont.com/documentation/workspace/preferences-window/glyph-view/" rel="nofollow">Preferences &gt; Glyph View &gt; Display</a>)</p>
<p dir="auto">the RoboFont UI may round glyph widths to integers though – for example, if you edit a glyph width using the Space Center or the Inspector, it will become an integer. so, if you want to keep glyph widths as floats, don’t edit them in the UI.</p>
<p dir="auto">hope this helps!</p>
]]></description><link>https://forum.robofont.com/post/3236</link><guid isPermaLink="true">https://forum.robofont.com/post/3236</guid><dc:creator><![CDATA[gferreira]]></dc:creator><pubDate>Wed, 22 Apr 2020 10:27:51 GMT</pubDate></item><item><title><![CDATA[Reply to Unrounded glyph widths in an interpolated UFO? on Sun, 26 Apr 2020 16:21:14 GMT]]></title><description><![CDATA[<p dir="auto">Amazing! Thank you so much for the quick reply - it's working for me now. I have two quick follow up questions:</p>
<ol>
<li>
<p dir="auto">Is there a way to set and unset that with a script so that I don't have to remember to manually change it?</p>
</li>
<li>
<p dir="auto">Do I need to set that when using other tools (like DesignSpaceEdit, Skateboard, Batch, etc.) so that they don't round data from an imported UFO?</p>
</li>
</ol>
<p dir="auto">Really appreciate your help with this!</p>
]]></description><link>https://forum.robofont.com/post/3245</link><guid isPermaLink="true">https://forum.robofont.com/post/3245</guid><dc:creator><![CDATA[grahambradley]]></dc:creator><pubDate>Sun, 26 Apr 2020 16:21:14 GMT</pubDate></item><item><title><![CDATA[Reply to Unrounded glyph widths in an interpolated UFO? on Mon, 27 Apr 2020 11:50:11 GMT]]></title><description><![CDATA[<p dir="auto">hello <a class="plugin-mentions-user plugin-mentions-a" href="https://forum.robofont.com/uid/361">@grahambradley</a>,</p>
<blockquote>
<p dir="auto">(1)Is there a way to set and unset that with a script so that I don't have to remember to manually change it?</p>
</blockquote>
<p dir="auto">yes, here’s a quick example:</p>
<pre><code class="language-python">from mojo.UI import getDefault, setDefault

# store current snap value
snapValue = getDefault('glyphViewRoundValues')
print('snap value was:', snapValue)

# set snap value to zero
print('setting snap value to 0')
setDefault('glyphViewRoundValues', 0)

# do something...

# restore previous value when done
setDefault('glyphViewRoundValues', snapValue)
print('restoring snap value of', snapValue)
</code></pre>
<blockquote>
<p dir="auto">(2) Do I need to set that when using other tools (like DesignSpaceEdit, Skateboard, Batch, etc.) so that they don't round data from an imported UFO?</p>
</blockquote>
<p dir="auto">yes. the round value is used by the native glyph object (even without the UI), and when generating fonts.</p>
<p dir="auto"><em>glyph widths are always rounded to integers when generating fonts</em>, this is a restriction of the <a href="http://docs.microsoft.com/en-us/typography/opentype/spec/hmtx" rel="nofollow">OpenType horizontal metrics table (htmx)</a>.</p>
<p dir="auto">hope this helps. good luck!</p>
]]></description><link>https://forum.robofont.com/post/3246</link><guid isPermaLink="true">https://forum.robofont.com/post/3246</guid><dc:creator><![CDATA[gferreira]]></dc:creator><pubDate>Mon, 27 Apr 2020 11:50:11 GMT</pubDate></item><item><title><![CDATA[Reply to Unrounded glyph widths in an interpolated UFO? on Tue, 28 Apr 2020 17:40:47 GMT]]></title><description><![CDATA[<p dir="auto">Nice - the code will be super helpful and that's so good to know about the settings. Thank you very much!</p>
]]></description><link>https://forum.robofont.com/post/3247</link><guid isPermaLink="true">https://forum.robofont.com/post/3247</guid><dc:creator><![CDATA[grahambradley]]></dc:creator><pubDate>Tue, 28 Apr 2020 17:40:47 GMT</pubDate></item></channel></rss>