# robofab manual # Point object # usage examples contour = CurrentGlyph() print contour.points from random import randint for p in contour.points: p.x += randint(-10,10) p.y += randint(-10,10) contour.update()
< RPoint for AFont.A >
RPoint is perhaps the smallest object in RoboFab objects. It represents one single point with a particular coordinate in a contour. It is used to access off-curve and on-curve points alike. It’s cousin, bPoint also provides access to incoming and outgoing bcps.
RPoint is exclusively only one single point.
Understanding Contours and outlines¶
The way outline data is organised in RoboFab, and how the various objects relate is described here: understanding contours.
x coordinate of this point.
y coordinate of this point.
type of this point.
Boolean for selection state, i.e.
Return a deepcopy of the object.
Move the anchor of the
(x,y). The relative coordinates of the
bcpOut will remain the same, which means that in fact, they move the same distance.
Round the coordinates to whole integers.
Select this point.
Transform this point. Use a Transform matrix object to mess with the point.