mojo.tools

GN2UV

UV2GN

registerFileExtension(fileExtension)

Register a file extension and set RoboFont as the default app to open that file extension.

IntersectGlyphWithLine(glyph, line, canHaveComponent=False, addSideBearings=False)

Intersect a glyph with a line. Returning a list of intersections.

IntersectGlyphWithLine(myGlyph, ((100, 50), (800, 50)), canHaveComponent=True, addSideBearings=True)

union(glyph, subjectContours, clipContours, roundCoordinates=None)

union(glyph, subjectContours, clipContours, roundCoordinates=None)

Draw the union in to the destination’glyph’ with the subject contours clipped by the clipContours. Both subjectContours and clipContours are a list of contour objects or a glyph object.

If roundCoordinates is None the default value will be used, see preferences.

difference(glyph, subjectContours, clipContours, roundCoordinates=None)

difference(glyph, subjectContours, clipContours, roundCoordinates=None)

Draw the difference in to the destination’glyph’ with the subject contours clipped by the clipContours. Both subjectContours and clipContours are a list of contour objects or a glyph object.

If roundCoordinates is None the default value will be used, see preferences.

intersection(glyph, subjectContours, clipContours, roundCoordinates=None)

intersection(glyph, subjectContours, clipContours, roundCoordinates=None)

Draw the difference in to the destination’glyph’ with the subject contours clipped by the clipContours. Both subjectContours and clipContours are a list of contour objects or a glyph object.

If roundCoordinates is None the default value will be used, see preferences.

xor(glyph, subjectContours, clipContours, roundCoordinates=None)

xor(glyph, subjectContours, clipContours, roundCoordinates=None)

Draw the difference in to the destination’glyph’ with the subject contours clipped by the clipContours. Both subjectContours and clipContours are a list of contour objects or a glyph object.

If roundCoordinates is None the default value will be used, see preferences.

unicodeToChar(uni)

Convert an unicode value to a char. Support big unicodes.

charToUnicode(char)

Convert a character to a unicode. Support big unicodes.

walkDirectoryForFile(dir, ext='.py')

Get all paths for a given dir and ext.

class BooleanGlyph()

Glyph like object that can be used to handling boolean operations and acts like a glyph object.

# union
result = BooleanGlyph(glyph) + BooleanGlyph(glyph2)
or
result = BooleanGlyph(glyph) | BooleanGlyph(glyph2)

# difference
result = BooleanGlyph(glyph) - BooleanGlyph(glyph2)

# intersection
result = BooleanGlyph(glyph) & BooleanGlyph(glyph2)

# xor
result = BooleanGlyph(glyph) ^ BooleanGlyph(glyph2)
Inherits from subclass: mojo.tools.BooleanGlyph

draw(pen)

Draws the BooleanGlyph in a pen.

drawPoints(pointPen)

Draws the BooleanGlyph in a pointPen.

class RoboFontError()

Common base class for all non-exit exceptions.

class CallbackWrapper()

A wrapper for an nsCallback to a normal python object.

action_()

doubleAction_()

Inherits from subclass: builtins.objc.objc_class

class nsCallbackWrapper()

A wrapper for a nsObject callback.

action(sender)

Last edited on 15/06/2018