RoboFab





RoboFab RInfo

Usage

from robofab.world import CurrentFont
f = CurrentFont()
print f.info.fullName
>>> MyFont Regular

print f.info.designer
>>> Huib van Krimpen
f.info.designer = "Jan van Krimpen"
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
>>> http://www.letterror.com/foundry/license.html

# but you can set the values as well
f.info.uniqueID = 4309359
f.info.designer = "Eric Gill"
    

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.