RLib

class RLib()

addObserver(observer, methodName, notification)

Add an observer object. that will receive notification for the given methodName.

getRepresentation(name, **kwargs)

Get a representation by name.

Optionally arguments could be provided if the representation factory requires arguments.

performUndo()

Create a undo item and add it the the undo manager.

prepareUndo(undoTitle='')

Save the current state of the object.

removeObserver(observer, notification)

Remove an observer object for a notification.

Inherits from subclass: fontParts.fontshell.lib.RLib

font

The lib’s parent font.

glyph

The lib’s parent glyph.

copyAttributes

naked()

asDict()

normalizeLibKey(value)

Normalizes lib key.

  • value must be a string.
  • value must be at least one character long.
  • Returned value will be an unencoded unicode string.

remove(key)

normalizeLibValue(value)

Normalizes lib value.

  • value must not be None.
  • Returned value is the same type as the input value.

clear()

copyData(source)

Subclasses may override this method. If so, they should call the super.

get(key, default=None)

__contains__(key)

items()

keys()

pop(key, default=None)

update(other)

values()

changed(*args, **kwargs)

Tell the environment that something has changed in the object. The behavior of this method will vary from environment to environment.

>>> obj.changed()

getParent()

setChanged()

setParent(parent)

Last edited on 15/05/2018