<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://typophile.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>Typophile - Can FontLab Scripts Manipulate Metrics/Kerning Classes? - Comments</title>
 <link>http://typophile.com/node/39898</link>
 <description>Comments for &quot;Can FontLab Scripts Manipulate Metrics/Kerning Classes?&quot;</description>
 <language>en</language>
<item>
 <title>Hello,
print Font().__doc__</title>
 <link>http://typophile.com/node/39898#comment-245425</link>
 <description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&lt;code&gt;print Font().__doc__&lt;/code&gt; &lt;/p&gt;
&lt;p&gt;Eigi&lt;/p&gt;
</description>
 <pubDate>Sun,  9 Dec 2007 10:51:44 -0800</pubDate>
 <dc:creator>eigi</dc:creator>
 <guid isPermaLink="false">comment 245425 at http://typophile.com</guid>
</item>
<item>
 <title>Oh thank god, this looks</title>
 <link>http://typophile.com/node/39898#comment-245370</link>
 <description>&lt;p&gt;Oh thank god, this looks like something I can work with. Where did this come from? Do you have a larger reference of which this is part?&lt;/p&gt;
&lt;p&gt;Thanks so much!&lt;/p&gt;
</description>
 <pubDate>Sun,  9 Dec 2007 02:20:06 -0800</pubDate>
 <dc:creator>amv</dc:creator>
 <guid isPermaLink="false">comment 245370 at http://typophile.com</guid>
</item>
<item>
 <title>Hello,
This may help:
Font</title>
 <link>http://typophile.com/node/39898#comment-245369</link>
 <description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;This may help:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Font Attribute:&lt;/em&gt;&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
classes[string]&lt;/code&gt;&lt;br /&gt;
  list of glyph classes in Classes panel&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Font Methods:&lt;/em&gt;&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
SetClassFlags(int class_index, bool left, bool right)&lt;/code&gt;&lt;br /&gt;
  allows to set &amp;#8217;left&amp;#8217; and &amp;#8217;right&amp;#8217; properties of the kerning class&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
SetClassFlags(int class_index, bool lsb, bool rsb, bool width)&lt;/code&gt;&lt;br /&gt;
  allows to set &amp;#8217;lsb&amp;#8217;, &amp;#8217;rsb&amp;#8217; and &amp;#8217;width&amp;#8217; properties of the metrics class&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
GetClassLeft(int class_index)&lt;/code&gt;&lt;br /&gt;
  returns the &amp;#8217;left&amp;#8217; property of the class&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
GetClassRight(int class_index)&lt;/code&gt;&lt;br /&gt;
  returns the &amp;#8217;right&amp;#8217; property of the class&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
GetClassMetricsFlags(int class_index)&lt;/code&gt;&lt;br /&gt;
  returns the tuple containing LSB, RSB and Width flags of the metrics class &lt;/p&gt;
&lt;p&gt;Regards&lt;br /&gt;
Eigi&lt;/p&gt;
</description>
 <pubDate>Sun,  9 Dec 2007 02:10:17 -0800</pubDate>
 <dc:creator>eigi</dc:creator>
 <guid isPermaLink="false">comment 245369 at http://typophile.com</guid>
</item>
<item>
 <title>Can FontLab Scripts Manipulate Metrics/Kerning Classes?</title>
 <link>http://typophile.com/node/39898</link>
 <description>&lt;p&gt;I&amp;#8217;m actually a little afraid to ask this question because there&amp;#8217;s so much riding on it, but I&amp;#8217;ve been planning [read: counting] on using scripts to automate the process of creating classes for metrics and kerning.&lt;/p&gt;
&lt;p&gt;Part of the reason is that I find the process painfully gruntwork-ish and would like to automate it for all future font projects, and second, because I&amp;#8217;ve had bad experiences with FontLab thus far and on more than one occasion, have seen my metrics classes magically vanish without explanation and would like the ability to rebuild all classes the next time this happens.&lt;/p&gt;
&lt;p&gt;Unfortunately, between the Unofficial FontLab Python API and the admittedly shallow official documentation, I can&amp;#8217;t find any real mention of metrics or kerning classes.&lt;/p&gt;
&lt;p&gt;So, dare I ask? Is there any way to create/modify classes from a Python script in FontLab, or is the workflow I&amp;#8217;m building doomed?&lt;/p&gt;
</description>
 <comments>http://typophile.com/node/39898#comments</comments>
 <category domain="http://typophile.com/taxonomy/term/6">Build</category>
 <pubDate>Sat,  8 Dec 2007 21:58:33 -0800</pubDate>
 <dc:creator>amv</dc:creator>
 <guid isPermaLink="false">39898 at http://typophile.com</guid>
</item>
</channel>
</rss>
