RoboFab

Support RoboFab

Up

See also

RoboFab Mailinglist

Join the RoboFab users community at Google groups.

Google Groups

Email:

Visit this group

RoboFab Sponsors

RoboFab RInfo

Usage

# robofab manual
#     Info object
#    usage examples


from robofab.world import CurrentFont
f = CurrentFont()
print f.info.fullName
print f.info.designer

f.info.designer = "Jan van Krimpen"
print f.info.designer
print f.info.ttVendor
print f.info.unitsPerEm
print f.info.xHeight
print f.info.licenseURL

# but you can set the values as well
f.info.uniqueID = 4309359
f.info.designer = "Eric Gill"
download examples/usageInfo.py
MyFont Regular
Huib van Krimpen
Jan van Krimpen
LTTR
1000
307
<a href="http://www.letterror.com/foundry/license.html">http://www.letterror.com/foundry/license.html</a>

Description

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.

Attributes

The list below is likely to grow.