mojo.roboFont

version

buildNumber

AllFonts(*deprecatedSortOptions, sortOptions=None, reverse=False, useDefault=True)

Return a list of all open fonts. Optinally sort options can be provided. see FontList

CurrentFont()

Return the front most open font.

CurrentGlyph()

Return the front current glyph.

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

Open a new font. Optionally a familyName and styleName can be provided. Optionally showInterface can be toggle on/off.

OpenFont(path=None, showInterface=True, showUI=None)

Open a font with a given path. If no path is given a get file dialog will pop up. Optionally showInterface can be toggle on/off.

OpenWindow(controller, *args, **kwargs)

Open window and control if that window is not openend twice.

Return True when the window is already opened. False if a new instance of the window is opened.

CreateCursor(pathOrImage, hotSpot=(4, 4))

Create a cursor from a path or an NSImage. Optional a hotSpot x, y tuple can be provided.

testRoboFontEnvironment(showInterface=False)

class FontsList()

list() -> new empty list list(iterable) -> new list initialized from iterable’s items

sortByFunctions

getFontsByFamilyName(familyName)

Get all fonts by a given family name.

getFontsByFamilyNameStyleName(familyName, styleName)

Get a specific font with a given family and style name.

getFontsByStyleName(styleName)

Get all fonts by a given style name.

sortBy(sortOptions, reverse=False, useDefault=True)

Sort the font list by font info attribute(s).

aFontsList.sortBy(sortOptions=["familyName", "styleName"], reversed=False, useDefault=True)

Optionally a custom function can be provided to sort the fonts. Or register a binding in FontsList.sortByFunctions The sortByFunction should take an font as argument and return a bool, int, float or str.

isItalic is already an optionally sorting option.

Inherits from subclass: builtins.list

append

clear

count

extend

index

insert

pop

remove

reverse

sort

Last edited on 09/09/2018