38 lines
2.3 KiB
HTML
38 lines
2.3 KiB
HTML
|
|
<!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> <br>
|
|
<font color="#ffffff" face="helvetica, arial"> <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.: Things Other Objects Lack (Sometimes)<br>
|
|
-assorted raw tools.<br>
|
|
<br>
|
|
This is an assorted colection of raw tools that do<br>
|
|
things inside of FontLab. Many of these functions<br>
|
|
form the bedrock of objectsFL. In short, use these<br>
|
|
tools only if you need the raw functions and they are<br>
|
|
not supported by the objects.<br>
|
|
<br>
|
|
Object model:<br>
|
|
Most of these tools were written before<br>
|
|
objectsFL. Some of these tools are used by<br>
|
|
objectsFL. That means that if you want to<br>
|
|
use functions from robofab.tools you can always<br>
|
|
feed them FontLab objects (like Font, Glyps,<br>
|
|
etc.). If the functions also accept Robjects from<br>
|
|
robofab.objects it is usually mentioned in the<br>
|
|
doc string.<br>
|
|
<br>
|
|
This is a simple way to convert a robofab Font<br>
|
|
object back to a FL Font object. Even if you don't<br>
|
|
know which particular faith an object belongs to<br>
|
|
you can use this:<br>
|
|
<br>
|
|
font = unwrapFont(font)</tt></p>
|
|
|
|
</body></html> |