RPoint

class RPoint()

A point object. This object is almost always
created with BaseContour.appendPoint,
the pen returned by BaseGlyph.getPen
or the point pen returned by BaseGLyph.getPointPen.
An orphan point can be created like this:

>>>point=RPoint()

labels

Labels for the points.

changed()

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

obj.changed()

updateSelection(sender)

Update the selection.

Inherits from subclass: fontParts.fontshell.point.RPoint

contour

The point’s parent BaseContour.

copyAttributes

font

The point’s parent BaseFont.

glyph

The point’s parent BaseGlyph.

index

The index of the point within the ordered
list of the parent glyph’s point. This
attribute is read only. :

selected

naked()

round()

copyData(source)

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

moveBy(value)

Move the object.

>>>obj.transformBy((10,0))

value must be an iterable containing two
integer/float values defining the x and y
values to move the object by.

rotateBy(value, origin=None)

Rotate the object.

>>>obj.transformBy(45)>>>obj.transformBy(45,origin=(500,500))

value must be a integer/float values
defining the angle to rotate the object by. origin
defines the point at with the rotation should originate.
It must be a coordinate or None.
The default is (0,0).

scaleBy(value, origin=None)

Scale the object.

>>>obj.transformBy(2.0)>>>obj.transformBy((0.5,2.0),origin=(500,500))

value must be an iterable containing two
integer/float values defining the x and y
values to scale the object by. origin defines the
point at with the scale should originate. It must be
a coordinate or None. The default is
(0,0).