53 lines
1.9 KiB
XML
53 lines
1.9 KiB
XML
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
<xml>
|
|
<include src="settings/generic.xml"/>
|
|
<synopsis
|
|
name="RLib"
|
|
description="part of a Font, contains all arbitrary data"
|
|
keywords="objects, lib, font, glyph"/>
|
|
<title>RoboFab Objects: RLib</title>
|
|
|
|
<div id="titlepic">
|
|
<img src="img/offdrawmodel_02.gif" alt="" border="0"/>
|
|
</div>
|
|
|
|
<div class="content">
|
|
<h1>RoboFab RLib</h1>
|
|
|
|
<h3>Usage</h3>
|
|
|
|
<pythonsource src="examples/usageLib.py"/>
|
|
|
|
|
|
<python type="output"><![CDATA[
|
|
< RLib for Salmiak-Regular >
|
|
['org.robofog.ufoExport.date',
|
|
'org.robofog.ufoExport.encoding.current',
|
|
'org.robofog.ufoExport.font.italicOffset',
|
|
'org.robofog.ufoExport.sourcePath']
|
|
]]></python>
|
|
|
|
<h3>Description</h3>
|
|
<p>
|
|
RFont and RGlyph objects get lib objects when they're created, so you don't have to explicxitly make one. Lib objects behave like normal dictionaries.
|
|
</p>
|
|
|
|
<h3>Where is this data stored?</h3>
|
|
|
|
|
|
|
|
<p class="note">
|
|
In RoboFab 1.0 and FontLab 4.6.1, the lib is saved inside the (FontLab native attributes!) <strong>glyph.customdata</strong> and <strong>font.customdata</strong> in the .vfb file. Note: a bug in <strong>FontLab 4.6.1</strong> prevents the glyph.lib from being used: when data is stored in this field, the font can no longer be edited. FontLab Studio 5 introduces a new attribute <strong>customdict</strong> which is exclusively for storing Python data. Early tests indicate that RoboFab storage of lib data can move to this attribute, but further testing and introduction of the MacOS version are needed before RoboFab's Lib support can move to it.
|
|
In UFO based fonts the libs are stored as .plist in the .UFO. Have a look at <a href="howto/usethelib.html">how to use the lib</a>.
|
|
</p>
|
|
|
|
|
|
<h3>Methods</h3>
|
|
<p>
|
|
</p>
|
|
<ul>
|
|
<li><strong>keys()</strong>: return a list of the keys. Normal dictionary stuff.</li>
|
|
</ul>
|
|
|
|
</div>
|
|
</xml> |