<?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 - Copy to Composites Macro - RoboFab ? - Comments</title>
 <link>http://typophile.com/node/46021</link>
 <description>Comments for &quot;Copy to Composites Macro - RoboFab ?&quot;</description>
 <language>en</language>
<item>
 <title>So I need to copy this</title>
 <link>http://typophile.com/node/46021#comment-281955</link>
 <description>&lt;p&gt;So I need to copy this script into Robofab ?  - where would I put the script ?&lt;/p&gt;
</description>
 <pubDate>Tue,  3 Jun 2008 12:55:38 -0700</pubDate>
 <dc:creator>ReginaldV</dc:creator>
 <guid isPermaLink="false">comment 281955 at http://typophile.com</guid>
</item>
<item>
 <title>A pen to calculate the</title>
 <link>http://typophile.com/node/46021#comment-281926</link>
 <description>&lt;p&gt;A &lt;a class=&quot;freelinking-external&quot; href=&quot;http://code.robofab.com/changeset/86&quot;&gt;pen to calculate the horizontal margins of a glyph at any given height by intersecting the shape with a horizontal line&lt;/a&gt; was recently added to Robofab, which seems to be what you need.&lt;/p&gt;
</description>
 <pubDate>Tue,  3 Jun 2008 11:25:28 -0700</pubDate>
 <dc:creator>Miguel Sousa</dc:creator>
 <guid isPermaLink="false">comment 281926 at http://typophile.com</guid>
</item>
<item>
 <title>Copy to Composites Macro - RoboFab ?</title>
 <link>http://typophile.com/node/46021</link>
 <description>&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;I trying to write a macro with RoboFab that works in the same way as FL copy to composites from the metrcis window, so I can quickly copy the metrics from glyphs like &amp;#8220;H&amp;#8221; to the Hbar. &lt;/p&gt;
&lt;p&gt;I was trying something like this :&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;/p&gt;
&lt;p&gt;#CopyToComposites&lt;br /&gt;
#&lt;br /&gt;
from robofab.world import CurrentFont&lt;br /&gt;
f = CurrentFont()&lt;br /&gt;
#&lt;br /&gt;
f[&#039;Hbar&#039;].leftMargin = f[&#039;H&#039;].leftMargin&lt;br /&gt;
f[&#039;Hbar&#039;].rightMargin = f[&#039;H&#039;].rightMargin&lt;br /&gt;
#&lt;br /&gt;
f.update()&lt;/p&gt;
&lt;p&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;The problem with this is it copies the actual sidebearing, so in cases like the Hbar the sidebearing is measured from the bar which overhangs the stem of the &amp;#8217;H&amp;#8217;, but I want it to be measured form the stem like you can do with the measuring line in the metrics window.&lt;/p&gt;
&lt;p&gt; &lt;div class=&quot;imageWrap&quot;&gt;&lt;img src=&quot;/files/Untitled-1_5264.gif&quot; /&gt;&lt;/div&gt;&lt;/p&gt;
</description>
 <comments>http://typophile.com/node/46021#comments</comments>
 <category domain="http://typophile.com/taxonomy/term/6">Build</category>
 <pubDate>Tue,  3 Jun 2008 10:01:47 -0700</pubDate>
 <dc:creator>ReginaldV</dc:creator>
 <guid isPermaLink="false">46021 at http://typophile.com</guid>
</item>
</channel>
</rss>
