fonttools/Documentation/robofabDocs/robofab.tools.toolsFL.html

38 lines
2.3 KiB
HTML
Raw Normal View History

<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module robofab.tools.toolsFL</title>
</head><body bgcolor="#f0f0f8">
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong><a href="robofab.html"><font color="#ffffff">robofab</font></a>.<a href="robofab.tools.html"><font color="#ffffff">tools</font></a>.toolsFL</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/code/projects/robofab/Lib/robofab/tools/toolsFL.py">/code/projects/robofab/Lib/robofab/tools/toolsFL.py</a></font></td></tr></table>
<p><tt>T.O.O.L.S.:&nbsp;Things&nbsp;Other&nbsp;Objects&nbsp;Lack&nbsp;(Sometimes)<br>
-assorted&nbsp;raw&nbsp;tools.<br>
&nbsp;<br>
This&nbsp;is&nbsp;an&nbsp;assorted&nbsp;colection&nbsp;of&nbsp;raw&nbsp;tools&nbsp;that&nbsp;do<br>
things&nbsp;inside&nbsp;of&nbsp;FontLab.&nbsp;Many&nbsp;of&nbsp;these&nbsp;functions<br>
form&nbsp;the&nbsp;bedrock&nbsp;of&nbsp;objectsFL.&nbsp;In&nbsp;short,&nbsp;use&nbsp;these<br>
tools&nbsp;only&nbsp;if&nbsp;you&nbsp;need&nbsp;the&nbsp;raw&nbsp;functions&nbsp;and&nbsp;they&nbsp;are<br>
not&nbsp;supported&nbsp;by&nbsp;the&nbsp;objects.<br>
&nbsp;<br>
Object&nbsp;model:<br>
Most&nbsp;of&nbsp;these&nbsp;tools&nbsp;were&nbsp;written&nbsp;before<br>
objectsFL.&nbsp;Some&nbsp;of&nbsp;these&nbsp;tools&nbsp;are&nbsp;used&nbsp;by<br>
objectsFL.&nbsp;That&nbsp;means&nbsp;that&nbsp;if&nbsp;you&nbsp;want&nbsp;to<br>
use&nbsp;functions&nbsp;from&nbsp;robofab.tools&nbsp;you&nbsp;can&nbsp;always<br>
feed&nbsp;them&nbsp;FontLab&nbsp;objects&nbsp;(like&nbsp;Font,&nbsp;Glyps,<br>
etc.).&nbsp;If&nbsp;the&nbsp;functions&nbsp;also&nbsp;accept&nbsp;Robjects&nbsp;from<br>
robofab.objects&nbsp;it&nbsp;is&nbsp;usually&nbsp;mentioned&nbsp;in&nbsp;the<br>
doc&nbsp;string.<br>
&nbsp;<br>
This&nbsp;is&nbsp;a&nbsp;simple&nbsp;way&nbsp;to&nbsp;convert&nbsp;a&nbsp;robofab&nbsp;Font<br>
object&nbsp;back&nbsp;to&nbsp;a&nbsp;FL&nbsp;Font&nbsp;object.&nbsp;Even&nbsp;if&nbsp;you&nbsp;don't<br>
know&nbsp;which&nbsp;particular&nbsp;faith&nbsp;an&nbsp;object&nbsp;belongs&nbsp;to<br>
you&nbsp;can&nbsp;use&nbsp;this:<br>
&nbsp;<br>
font&nbsp;=&nbsp;unwrapFont(font)</tt></p>
</body></html>