<?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[compileGlyph and glyphConstruction]]></title><description><![CDATA[<p dir="auto">I get a <code>DeprecationWarning</code> when I use an older script that uses <code>font.compileGlyph(newGlyph, baseGlyph, accent, preflight=False)</code></p>
<pre><code class="language-console">/Applications/RoboFontBeta3.app/Contents/Resources/lib/python36.zip/lib/fontObjects/fontPartsWrappers.py:1870: DeprecationWarning: 'Font.compileGlyph(...)': use 'glyphConstruction'
</code></pre>
<p dir="auto">When I use <code>glyphConstruction</code> instead, I get this error:</p>
<pre><code class="language-console">AttributeError: 'RFont' object has no attribute 'glyphConstruction'
</code></pre>
<p dir="auto">Is there a pythonic way to use the suggested <code>glyphConstruction</code>, is there a <code>glyphConstruction()</code> function, something like<br />
<code>glyphConstruction(newGlyph, baseGlyph, accent)</code>?</p>
]]></description><link>https://forum.robofont.com/topic/635/compileglyph-and-glyphconstruction</link><generator>RSS for Node</generator><lastBuildDate>Thu, 14 May 2026 04:47:01 GMT</lastBuildDate><atom:link href="https://forum.robofont.com/topic/635.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 08 May 2019 15:44:41 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to compileGlyph and glyphConstruction on Wed, 08 May 2019 16:54:15 GMT]]></title><description><![CDATA[<p dir="auto">I get a <code>DeprecationWarning</code> when I use an older script that uses <code>font.compileGlyph(newGlyph, baseGlyph, accent, preflight=False)</code></p>
<pre><code class="language-console">/Applications/RoboFontBeta3.app/Contents/Resources/lib/python36.zip/lib/fontObjects/fontPartsWrappers.py:1870: DeprecationWarning: 'Font.compileGlyph(...)': use 'glyphConstruction'
</code></pre>
<p dir="auto">When I use <code>glyphConstruction</code> instead, I get this error:</p>
<pre><code class="language-console">AttributeError: 'RFont' object has no attribute 'glyphConstruction'
</code></pre>
<p dir="auto">Is there a pythonic way to use the suggested <code>glyphConstruction</code>, is there a <code>glyphConstruction()</code> function, something like<br />
<code>glyphConstruction(newGlyph, baseGlyph, accent)</code>?</p>
]]></description><link>https://forum.robofont.com/post/2325</link><guid isPermaLink="true">https://forum.robofont.com/post/2325</guid><dc:creator><![CDATA[martin]]></dc:creator><pubDate>Wed, 08 May 2019 16:54:15 GMT</pubDate></item><item><title><![CDATA[Reply to compileGlyph and glyphConstruction on Wed, 08 May 2019 18:22:28 GMT]]></title><description><![CDATA[<p dir="auto">hello <a class="plugin-mentions-user plugin-mentions-a" href="https://forum.robofont.com/uid/27">@martin</a>,</p>
<p dir="auto"><code>font.compileGlyph</code> is <a href="http://robofont.com/documentation/building-tools/toolkit/robofab-fontparts/#rfont" rel="nofollow">deprecated in FontParts</a>. Glyph Construction is the new recommended method for building accented glyphs.</p>
<p dir="auto">please have a look at <a href="http://robofont.com/documentation/how-tos/building-accented-glyphs/#building-composed-glyphs-with-a-script" rel="nofollow">Building accented glyphs with a script</a> for an example script using the <code>glyphConstruction</code> builder. there’s also a script to convert your accents dict into glyph constructions.</p>
<p dir="auto">ps. once you have your accented glyphs in glyph construction syntax, you can use the Glyph Builder interface in the <a href="http://github.com/typemytype/GlyphConstruction/" rel="nofollow">Glyph Construction</a> extension to preview the new glyphs before building them.</p>
]]></description><link>https://forum.robofont.com/post/2326</link><guid isPermaLink="true">https://forum.robofont.com/post/2326</guid><dc:creator><![CDATA[gferreira]]></dc:creator><pubDate>Wed, 08 May 2019 18:22:28 GMT</pubDate></item><item><title><![CDATA[Reply to compileGlyph and glyphConstruction on Mon, 13 May 2019 12:58:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.robofont.com/uid/22">@gferreira</a> thank you, that is precisely what I was looking for!</p>
]]></description><link>https://forum.robofont.com/post/2336</link><guid isPermaLink="true">https://forum.robofont.com/post/2336</guid><dc:creator><![CDATA[martin]]></dc:creator><pubDate>Mon, 13 May 2019 12:58:40 GMT</pubDate></item><item><title><![CDATA[Reply to compileGlyph and glyphConstruction on Mon, 13 May 2019 19:17:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.robofont.com/uid/22">@gferreira</a> I noticed that the example <a href="https://robofont.com/assets/code/building-tools/font/buildAccentedGlyphsRF3.py" rel="nofollow">buildAccentedGlyphsRF3.py</a> does not consider leading <code>?</code> and adds <code>a</code> and <code>grave</code> as components over and over to <code>agrave</code>, each time I run the script. Is this intentional?</p>
]]></description><link>https://forum.robofont.com/post/2341</link><guid isPermaLink="true">https://forum.robofont.com/post/2341</guid><dc:creator><![CDATA[martin]]></dc:creator><pubDate>Mon, 13 May 2019 19:17:25 GMT</pubDate></item><item><title><![CDATA[Reply to compileGlyph and glyphConstruction on Mon, 13 May 2019 21:32:56 GMT]]></title><description><![CDATA[<p dir="auto">hello <a class="plugin-mentions-user plugin-mentions-a" href="https://forum.robofont.com/uid/27">@martin</a>, thanks for reporting. this was an oversight.</p>
<p dir="auto">I’ve <a href="https://gitlab.com/typemytype/robofont_com/commit/aa65d66be24be09f77067dd00299f1abe66bb72d" rel="nofollow">updated the script</a>, so now lines starting with <code>?</code> are ignored, and existing glyphs are cleared before adding components. please give it another try: <a href="https://robofont.com/assets/code/building-tools/font/buildAccentedGlyphsRF3.py" rel="nofollow">buildAccentedGlyphsRF3.py</a></p>
]]></description><link>https://forum.robofont.com/post/2344</link><guid isPermaLink="true">https://forum.robofont.com/post/2344</guid><dc:creator><![CDATA[gferreira]]></dc:creator><pubDate>Mon, 13 May 2019 21:32:56 GMT</pubDate></item><item><title><![CDATA[Reply to compileGlyph and glyphConstruction on Wed, 15 May 2019 12:12:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.robofont.com/uid/22">@gferreira</a> thank you, that's perfect. I also noticed you added a my favorite <code>autoUnicodes()</code> function :)</p>
]]></description><link>https://forum.robofont.com/post/2364</link><guid isPermaLink="true">https://forum.robofont.com/post/2364</guid><dc:creator><![CDATA[martin]]></dc:creator><pubDate>Wed, 15 May 2019 12:12:17 GMT</pubDate></item></channel></rss>