<?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[Check Kerning]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I want to improve my script for generating images of sample texts in (tiny)DrawBot directly from the ufo.<br />
Is there an easy way to check if two glyphs has a kerning value?</p>
<p dir="auto">thanks</p>
]]></description><link>https://forum.robofont.com/topic/248/check-kerning</link><generator>RSS for Node</generator><lastBuildDate>Tue, 11 Aug 2026 11:42:12 GMT</lastBuildDate><atom:link href="https://forum.robofont.com/topic/248.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 22 Mar 2013 14:39:15 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Check Kerning on Tue, 02 Jan 2018 20:16:44 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I want to improve my script for generating images of sample texts in (tiny)DrawBot directly from the ufo.<br />
Is there an easy way to check if two glyphs has a kerning value?</p>
<p dir="auto">thanks</p>
]]></description><link>https://forum.robofont.com/post/248</link><guid isPermaLink="true">https://forum.robofont.com/post/248</guid><dc:creator><![CDATA[thom]]></dc:creator><pubDate>Tue, 02 Jan 2018 20:16:44 GMT</pubDate></item><item><title><![CDATA[Reply to Check Kerning on Tue, 02 Jan 2018 20:17:23 GMT]]></title><description><![CDATA[<p dir="auto">There is the kerning attribute of a font<br />
see <a href="http://www.robofab.org/objects/kerning.html" rel="nofollow">http://www.robofab.org/objects/kerning.html</a></p>
<pre><code class="language-python">f = CurrentFont()
print f.kerning[('A', 'V')]
</code></pre>
<p dir="auto">If there is group kerning, maybe you should flatten the kerning dict in a temporary dict.<br />
If the kerning is only available in the features, best is to compile the font it and read it back into RoboFont.</p>
<p dir="auto">good luck!</p>
]]></description><link>https://forum.robofont.com/post/1018</link><guid isPermaLink="true">https://forum.robofont.com/post/1018</guid><dc:creator><![CDATA[frederik]]></dc:creator><pubDate>Tue, 02 Jan 2018 20:17:23 GMT</pubDate></item><item><title><![CDATA[Reply to Check Kerning on Sat, 23 Mar 2013 15:17:15 GMT]]></title><description><![CDATA[<p dir="auto">Merci.<br />
Indeed, there is some group-group and glyph-group and glyph-glyph kerning. So no way to get directly a value out the ufo?<br />
Will try the temp dict.</p>
<p dir="auto">Thanks Frederik!</p>
]]></description><link>https://forum.robofont.com/post/1019</link><guid isPermaLink="true">https://forum.robofont.com/post/1019</guid><dc:creator><![CDATA[thom]]></dc:creator><pubDate>Sat, 23 Mar 2013 15:17:15 GMT</pubDate></item><item><title><![CDATA[Reply to Check Kerning on Thu, 14 Oct 2021 20:05:45 GMT]]></title><description><![CDATA[<p dir="auto">This is a super late reply, but I wanted to know this for another task, and the thread didn’t really tell me how to find kerning info, because (at least currently) <code>f.kerning[('A', 'V')]</code> requires you to look up kerning by <em>group names</em>, not just glyph names.</p>
<p dir="auto">Here’s a RoboFont script that will work to find kerning values for any two glyphs, just by there glyph names:</p>
<pre><code class="language-py">from ufoLib2 import Font
from fontTools.ufoLib.kerning import lookupKerningValue

# open the font with ufoLib2
font = Font(CurrentFont().path)

# show kerning value
print(lookupKerningValue(("A","V"), font.kerning, font.groups))
</code></pre>
<p dir="auto">To run the script outside of RoboFont, just feed in a file path for the font:</p>
<pre><code class="language-py">from ufoLib2 import Font
from fontTools.ufoLib.kerning import lookupKerningValue

# open the font with ufoLib2
# replace the path with a relevant one
font = Font("src/ufo/sans/Recursive Sans-Casual A.ufo")

# show kerning value
print(lookupKerningValue(("A","V"), font.kerning, font.groups))
</code></pre>
]]></description><link>https://forum.robofont.com/post/3835</link><guid isPermaLink="true">https://forum.robofont.com/post/3835</guid><dc:creator><![CDATA[ArrowType]]></dc:creator><pubDate>Thu, 14 Oct 2021 20:05:45 GMT</pubDate></item><item><title><![CDATA[Reply to Check Kerning on Fri, 15 Oct 2021 12:29:55 GMT]]></title><description><![CDATA[<p dir="auto">FYI: fontParts has <code>font.kerning.find(("A", "V"))</code> dont know why its not in the documentation.</p>
]]></description><link>https://forum.robofont.com/post/3836</link><guid isPermaLink="true">https://forum.robofont.com/post/3836</guid><dc:creator><![CDATA[frederik]]></dc:creator><pubDate>Fri, 15 Oct 2021 12:29:55 GMT</pubDate></item></channel></rss>