mojo.roboFont

from mojo.roboFont import *
class AllFonts

Returns a list of all open font objects, the list as some additional methods.

getFontsByStyleName(styleName)

Returns all fonts with the given styleName.

getFontsByFamilyName(familyName)

Returns all fonts with the given familyName.

getFontsByFamilyNameStyleName(familyName, styleName)

Returns the font with the given familyName and styleName.

CurrentFont()

Returns the current font, will be None if no font is opened.

CurrentGlyph()

Returns the current glyph.

NewFont(familyName=None, styleName=None, showUI=True)

Creates a new font with the given familyName and styleName. Optionally you can create a new font without having a UI, this is much faster to do internal actions.

OpenFont(path, showUI=True)

oOens a UFO with a given path. Optionally you can create a new font without having a UI, this is much faster to do internal actions.

RFont(path=None, showUI=True)

Creates a new font with the given path. Optionally you can create a new font without having a UI, this is much faster to do internal actions.

RGlyph()

Creates a empty glyph object.

RContour()

Creates a empty contour object.

RInfo()

Creates a empty info object.

RAnchor()

Creates a empty anchor object.

RGroups()

Creates a empty group object.

RFeatures()

Creates a empty feature object.

RComponent()

Creates a empty component object.

RKerning()

Creates a empty kerning object.

OpenWindow(controller, *args, **kwargs)

Opens a window from the controller objects with args, and kwargs use this if you want RoboFont to deal with already opened versions of your window controller.

CreateCursor(path, hotSpot=(4, 4))

Creates a cursor object for image path with the given hotSpot.

version

Returns the version of RoboFont.