195 lines
4.6 KiB
HTML
195 lines
4.6 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<title>How to make a UFO</title>
|
|
|
|
<link href="../default.css" type="text/css" rel="stylesheet" />
|
|
|
|
</head>
|
|
<body>
|
|
|
|
|
|
|
|
<div id="modellogo">
|
|
<img src="../img/drawmodel_header.jpg" width="595" height="112" />
|
|
</div>
|
|
<div class="leftcontent">
|
|
<h2 class="crb-seealso">
|
|
RoboFab
|
|
</h2>
|
|
<p class="menu">
|
|
<a href="../index.html">
|
|
Home
|
|
</a>
|
|
<br />
|
|
<a href="../download/license.html">
|
|
Download v1.1.1
|
|
</a>
|
|
<br />
|
|
<a href="../intro.html">
|
|
Intro
|
|
</a>
|
|
<br />
|
|
<a href="../install.html">
|
|
Install Notes
|
|
</a>
|
|
<br />
|
|
<a href="../history.html">
|
|
History
|
|
</a>
|
|
<br />
|
|
<a href="../executive.html">
|
|
Summary
|
|
</a>
|
|
</p>
|
|
<p class="menu">
|
|
<a href="index.html">
|
|
How to's
|
|
</a>
|
|
<br />
|
|
<a href="../objects/index.html">
|
|
Fab Objects
|
|
</a>
|
|
<br />
|
|
<a href="../objects/model.html">
|
|
Fab Map
|
|
</a>
|
|
<br />
|
|
<a href="../tools/index.html">
|
|
Fab Tools
|
|
</a>
|
|
<br />
|
|
<a href="../ufo/index.html">
|
|
UFO Overview
|
|
</a>
|
|
<br />
|
|
<a href="../limitations.html">
|
|
Fab Limitations
|
|
</a>
|
|
</p>
|
|
<p class="menu">
|
|
<a href="../links/index.html">
|
|
Links
|
|
</a>
|
|
<br />
|
|
<a href="../glossary/index.html">
|
|
Glossary
|
|
</a>
|
|
<br />
|
|
<a href="../credits.html">
|
|
Credits
|
|
</a>
|
|
</p>
|
|
<br />
|
|
<br />
|
|
<p class="crb-uplink"><a href="index.html">Back to How To</a></p>
|
|
|
|
<br />
|
|
<br />
|
|
<p class="menu">
|
|
|
|
</p>
|
|
</div>
|
|
<div class="footer">
|
|
<a href="../feedback.html">
|
|
Feedback
|
|
</a>
|
|
<br />
|
|
<a href="../map.html">
|
|
Sitemap
|
|
</a>
|
|
<br />
|
|
Please also refer to the
|
|
<a href="../download/license.html">
|
|
Legal
|
|
</a>
|
|
<br />
|
|
Copyright 2003-2005 RoboFab
|
|
<br />
|
|
version 1.1.1
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="content">
|
|
<h1>How to make a UFO</h1>
|
|
<p>
|
|
Exporting a FontLab font to UFO is easy.
|
|
</p>
|
|
<ul>
|
|
<li>open the .vfb</li>
|
|
<li>select the <strong>RoboFabUFO</strong> menu in the Macro toolbar</li>
|
|
<li>select the <strong>Export Current Font to UFO Format</strong> script</li>
|
|
<li>run it</li>
|
|
|
|
</ul>
|
|
<p>
|
|
The .ufo will be in the same directory as the original .vfb file. Have an in-depth look at the <a href="../ufo/index.html">ufo format here</a>.
|
|
</p>
|
|
|
|
<p class="note">
|
|
If you want to export a new FontLab font to UFO, <strong>it is important that you save the font to .vfb first.</strong>
|
|
</p>
|
|
|
|
<h2>Importing a UFO into FontLab</h2>
|
|
|
|
<ul>
|
|
<li>select the <strong>RoboFabUFO</strong> menu in the Macro toolbar</li>
|
|
<li>select the <strong>Import .ufo File into FontLab</strong> script</li>
|
|
<li>run it</li>
|
|
</ul>
|
|
|
|
<p>
|
|
This script create a new, empty FontLab font, then proceed to ask you for a .ufo directory.
|
|
|
|
</p>
|
|
|
|
<p class="note">
|
|
Due to some limitations in how FontLab keeps track of new, untitled, unsaved fonts, it is vital to <strong>make sure that there are no other unsaved, untitled fonts open</strong> when you run this script. Because if there are, FontLab will be confused about where to import the glyphs from the .ufo and none of the fonts will show the new glyphs. It's ok to have other fonts open when importing .ufo, they just to have been saved previously.
|
|
</p>
|
|
|
|
<h3>Importing a bunch of UFO's into FontLab</h3>
|
|
<p>
|
|
What if you need to import a whole family of UFO's?
|
|
</p>
|
|
|
|
<ul>
|
|
<li>select the <strong>RoboFabUFO</strong> menu in the Macro toolbar</li>
|
|
<li>select the <strong>Import all UFO's in a folder</strong> script</li>
|
|
<li>run it</li>
|
|
</ul>
|
|
|
|
<p>
|
|
This script will prompt you for a folder with UFO's. Pick one. The script will proceed to import the UFO's one by one.
|
|
</p>
|
|
|
|
<p class="note">
|
|
Sometimes, some versions of FontLab can get a bit tired of importing UFO's in a batch. When this happens not all UFO's will be imported and FontLab may crash. When this happens, just import the fonts one by one.
|
|
</p>
|
|
|
|
|
|
<h3>Making a UFO from a font binary</h3>
|
|
<p>
|
|
Using FontTools you can make a UFO directly from a font binary. This is very fast, and it works outside of FontLab, but not all data (for instance kerning and apperently metrics) is imported. So your mileage may vary.
|
|
</p>
|
|
|
|
<pre>
|
|
from robofab.tools.toolsAll import fontToUFO
|
|
from robofab.interface.all.dialogs import GetFile, PutFile
|
|
|
|
srcPath = GetFile('Select the source')
|
|
dstPath = PutFile('Save as...')
|
|
|
|
fontToUFO(srcPath, dstPath)
|
|
</pre>
|
|
|
|
<br />
|
|
<br />
|
|
<br />
|
|
<br />
|
|
</div>
|
|
</body>
|
|
</html> |