219 lines
6.9 KiB
HTML
Raw Normal View History

<!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>RoboFab Objects: RInfo</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="../howto/index.html">
How to's
</a>
<br />
<a href="index.html">
Fab Objects
</a>
<br />
<a href="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 Objects</a></p>
<br />
<br />
<p class="menu">
<a href="anchor.html">RAnchor</a><br />
<a href="bpoint.html">bPoint</a><br />
<a href="component.html">RComponent</a><br />
<a href="contour.html">RContour</a><br />
<a href="font.html">RFont</a><br />
<a href="glyph.html">RGlyph</a><br />
<a href="index.html">Objects</a><br />
<a href="kerning.html">RKerning</a><br />
<a href="lib.html">RLib</a><br />
<a href="model.html">Object model</a><br />
<a href="pen.html">Pen objects</a><br />
<a href="point.html">RPoint</a><br />
<a href="segment.html">RSegment</a><br />
</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 id="titlepic">
<img src="../img/offdrawmodel_05.gif" alt="" border="0" />
</div>
<div class="content">
<h1>RoboFab RInfo</h1>
<h3>Usage</h3>
<pre>
from robofab.world import CurrentFont
f = CurrentFont()
print f.info.fullName
>>> MyFont Regular
print f.info.designer
>>> Huib van Krimpen
f.info.designer = &quot;Jan van Krimpen&quot;
print f.info.designer
>>> Jan van Krimpen
print f.info.ttVendor
>>> LTTR
print f.info.unitsPerEm
>>> 1000
print f.info.xHeight
>>> 307
print f.info.licenseURL
>>> <a href="http://www.letterror.com/foundry/license.html">http://www.letterror.com/foundry/license.html</a>
# but you can set the values as well
f.info.uniqueID = 4309359
f.info.designer = &quot;Eric Gill&quot;
</pre>
<h3>Description</h3>
<p>
RInfo contains all names, numbers, URL's, values, etc. that would otherwise clutter up the font object. You don't have to create a RInfo object yourself, RFont makes one when it is created. In FontLab the RInfo data is tunneled to the appropriate places in the FontLab font. In UFO land the data ends up in info.plist. In all implementations RInfo doesn't check the validity of the entries, it just provides storage or access to them. It is likely that the attributes of RInfo are extended in the future.
</p>
<h3>Attributes</h3>
<p>The list below is likely to grow.</p>
<ul>
<li><strong>ascender</strong>: ascender&nbsp;value, an integer</li>
<li><strong>capHeight</strong>: cap&nbsp;height&nbsp;value, an integer</li>
<li><strong>copyright</strong>: copyright string, a string</li>
<li><strong>createdBy</strong>: field for the creator for the font, i.e. the foundry</li>
<li><strong>defaultWidth</strong>: value for default width of missing glyphs, an integer</li>
<li><strong>designer</strong>: name of the designer, a string</li>
<li><strong>designerURL</strong>: web address for the designer, a URL</li>
<li><strong>familyName</strong>: family name of the font, a string</li>
<li><strong>fondID</strong>: MacOS FOND resource number, an integer</li>
<li><strong>fondName</strong>: MacOS FOND name, a string</li>
<li><strong>fontName</strong>: font name, a string</li>
<li><strong>fontStyle</strong>: the font style code, integer</li>
<li><strong>fullName</strong>: the full name of the font, a string</li>
<li><strong>parent</strong>: reference to the parent object (a font usually)</li>
<li><strong>italicAngle</strong>: the italic angle, integer</li>
<li><strong>license</strong>: the font license text, a string</li>
<li><strong>licenseURL</strong>: web address for the license agreement, a URL</li>
<li><strong>menuName</strong>: one of the menu names, a string</li>
<li><strong>msCharSet</strong>: flag for windows fonts</li>
<li><strong>note</strong>: the font note, a string</li>
<li><strong>notice</strong>: a notice about the font, different from note and copyrright, a string</li>
<li><strong>otFamilyName</strong>: family name specific for OpenType fonts a string</li>
<li><strong>otStyleName</strong>: style name specific for OpenType fonts, a string</li>
<li><strong>otMacName</strong>: Mac name specific for OpenType fonts, a string</li>
<li><strong>selected</strong>: whether or not the font is selected, a boolean</li>
<li><strong>slantAngle</strong>: slant angle, different from italic angle, an integer</li>
<li><strong>styleName</strong>: the style name, a string</li>
<li><strong>trademark</strong>: the trademark statement, a string</li>
<li><strong>ttUniqueID</strong>: unique ID for TrueType fonts, an integer</li>
<li><strong>ttVendor</strong>: Microsoft vendor code, a 4 character string</li>
<li><strong>ttVersion</strong>: which truetype version</li>
<li><strong>uniqueID</strong>: unique PostScript ID number, an integer</li>
<li><strong>unitsPerEm</strong>: units per em, integer</li>
<li><strong>vendorURL</strong>: web address for the font's vendor, a URL</li>
<li><strong>versionMajor</strong>: value for major version</li>
<li><strong>versionMinor</strong>: value for minor version</li>
<li><strong>weightName</strong>: the name of the weight, i.e. &quot;Semi Bold&quot;, used in naming stuff.</li>
<li><strong>weightValue</strong>: value for the weight. FontLab calls Regular 500 (or something like that)</li>
<li><strong>widthName</strong>: the name of the width, i.e. &quot;Condensed&quot;</li>
<li><strong>year</strong>: the year in which the font was produced</li>
</ul>
</div>
</body>
</html>