RoboFab

Support RoboFab

Up

See also

RoboFab Mailinglist

Join the RoboFab users community at Google groups.

Google Groups

Email:

Visit this group

RoboFab Sponsors

RoboFab Point

Usage

# robofab manual
#     Point object
#    usage examples

contour = CurrentGlyph()[0]
print contour.points[0]

from random import randint
for p in contour.points:
    p.x += randint(-10,10)
    p.y += randint(-10,10)
c.update()
download examples/usagePoint.py
< RPoint for AFont.A[0][0] >

Description

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.

Attributes

UFO only attributes

Methods