Component
===============================================
Component - class to represent glyph component
===============================================
Components are defined by the glyph index which they reference,
Shift of components origin point and scale factor of a component
Scale is measured in relation to 1.0, so 100% scale is 1.0 and 60% - 0.6
This class is Multiple Master - compatible
CONSTRUCTOR
Component() - generic constructor, creates an empty Component
Component(Component) - copy constructor
Component(index) - creates component referencing
glyph index with zero shift and 100% scale
Component(index, Point(integer) delta)
- creates component referencing
glyph index with delta shift and 100% scale
Component(index, Point(integer) delta, Point(float) scale)
- creates component referencing
glyph index with delta shift
and scale factor defined by scale
ATTRIBUTES
parent (read-only) - parent object, Glyph
index (integer) - referencing glyph index
delta (Point(integer)) - shift value
scale (Point(float)) - scale factor
deltas [(Point(integer))] - list of shift values for each master
scales [(Point(float))] - list of scale values for each master
OPERATIONS
none
METHODS
Get() | (Font f) - creates a glyph from component
applying delta and scale transformations.
Font parameter is not needed when component has a parent
Paste() - appends component to a parent glyph as a set of outlines.
Component must have a parent