<?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[Can&#x27;t open UFO: ValueError]]></title><description><![CDATA[<p dir="auto">Hi Robofont forum!<br />
I'm new to the game so this might be a very basic question:<br />
I'm trying to open a .UFO font exported from Glyphs but Robofont won't accept its format. The error displayed in output is:</p>
<p dir="auto"><strong>Can't open UFO: ValueError Invalid value ('1') for attribute postscriptBlueFuzz.</strong></p>
<p dir="auto">Can anybody help me understand what the problem is here?<br />
Thanks in advance!</p>
]]></description><link>https://forum.robofont.com/topic/892/can-t-open-ufo-valueerror</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Apr 2026 18:17:47 GMT</lastBuildDate><atom:link href="https://forum.robofont.com/topic/892.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 26 Aug 2020 23:34:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Can&#x27;t open UFO: ValueError on Wed, 26 Aug 2020 23:34:22 GMT]]></title><description><![CDATA[<p dir="auto">Hi Robofont forum!<br />
I'm new to the game so this might be a very basic question:<br />
I'm trying to open a .UFO font exported from Glyphs but Robofont won't accept its format. The error displayed in output is:</p>
<p dir="auto"><strong>Can't open UFO: ValueError Invalid value ('1') for attribute postscriptBlueFuzz.</strong></p>
<p dir="auto">Can anybody help me understand what the problem is here?<br />
Thanks in advance!</p>
]]></description><link>https://forum.robofont.com/post/3467</link><guid isPermaLink="true">https://forum.robofont.com/post/3467</guid><dc:creator><![CDATA[Morula Type]]></dc:creator><pubDate>Wed, 26 Aug 2020 23:34:22 GMT</pubDate></item><item><title><![CDATA[Reply to Can&#x27;t open UFO: ValueError on Thu, 27 Aug 2020 10:36:15 GMT]]></title><description><![CDATA[<p dir="auto">He Morula Type!!!</p>
<p dir="auto">the UFO has a string (text) entry for the <code>postscriptBlueFuzz</code> info value. Which is <strong>not</strong> allowed. This value must be a <code>integer</code> or a <code>float</code>.</p>
<p dir="auto">This is not good, where did you get the UFO from?</p>
<p dir="auto">run this inside RoboFont to get it fixed!</p>
<p dir="auto">enjoy</p>
<pre><code class="language-python">from fontParts.ui import GetFile

# get the path to the file
path = GetFile()
print("fixing ufo:", path)

# import the ufo reader/writer
from fontTools.ufoLib import UFOReaderWriter

# create a dummy simple info class to store the info

class SimpleInfo(dict):
    
    def __setattr__(self, key, value):
        self[key] = value
    
    def __getattr__(self, key):
        return self.get(key, None)
    
# if we have a path 
if path:
    # read the ufo, but dont validate
    reader = UFOReaderWriter(path, validate=False)
    # create a info object
    info = SimpleInfo()
    # read the info from the ufo
    reader.readInfo(info)
    # change the postscriptBlueFuzz to an integer
    info.postscriptBlueFuzz = int(info.postscriptBlueFuzz)
    # write it back into the ufo
    reader.writeInfo(info)

# DONE!
</code></pre>
]]></description><link>https://forum.robofont.com/post/3468</link><guid isPermaLink="true">https://forum.robofont.com/post/3468</guid><dc:creator><![CDATA[frederik]]></dc:creator><pubDate>Thu, 27 Aug 2020 10:36:15 GMT</pubDate></item><item><title><![CDATA[Reply to Can&#x27;t open UFO: ValueError on Thu, 27 Aug 2020 10:55:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.robofont.com/uid/533">@Morula-Type</a> you can also fix the XML in <code>fontinfo.plist</code> by hand:</p>
<ul>
<li>open the UFO package in Finder (right click + <em>Show Package Contents</em>)</li>
<li>open the file <code>fontinfo.plist</code> in a code editor</li>
<li>look for <code>&lt;key&gt;postscriptBlueFuzz&lt;/key&gt;</code></li>
<li>in the line below, replace the <code>&lt;string&gt;</code> tag with <code>&lt;integer&gt;</code>:<br />
<s><code>&lt;string&gt;1&lt;/string&gt;</code></s><br />
<code>&lt;integer&gt;1&lt;/integer&gt;</code></li>
</ul>
<p dir="auto">this approach can help you understand how the UFO format works. if you need to do it multiple times, use the script :)</p>
<p dir="auto">cheers!</p>
]]></description><link>https://forum.robofont.com/post/3469</link><guid isPermaLink="true">https://forum.robofont.com/post/3469</guid><dc:creator><![CDATA[gferreira]]></dc:creator><pubDate>Thu, 27 Aug 2020 10:55:47 GMT</pubDate></item><item><title><![CDATA[Reply to Can&#x27;t open UFO: ValueError on Thu, 27 Aug 2020 16:27:43 GMT]]></title><description><![CDATA[<p dir="auto">First of all, thank you very much for the fast reply! Both solutions work perfectly.<br />
To answer <a class="plugin-mentions-user plugin-mentions-a" href="https://forum.robofont.com/uid/1">@frederik</a>'s question: I generated the UFO myself from a font made from scratch in Glyphs. Any idea what parameter or option I could have set wrong to get string instead of integer?</p>
]]></description><link>https://forum.robofont.com/post/3470</link><guid isPermaLink="true">https://forum.robofont.com/post/3470</guid><dc:creator><![CDATA[Morula Type]]></dc:creator><pubDate>Thu, 27 Aug 2020 16:27:43 GMT</pubDate></item><item><title><![CDATA[Reply to Can&#x27;t open UFO: ValueError on Fri, 28 Aug 2020 15:06:05 GMT]]></title><description><![CDATA[<p dir="auto">No idea, I guess it is a bug in Glyphs...</p>
]]></description><link>https://forum.robofont.com/post/3473</link><guid isPermaLink="true">https://forum.robofont.com/post/3473</guid><dc:creator><![CDATA[frederik]]></dc:creator><pubDate>Fri, 28 Aug 2020 15:06:05 GMT</pubDate></item></channel></rss>