Skip to content

FL.Component

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:

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

Native bases: object

Captured native MRO: Component, object

Native new allocation evidence (not an init overload): (args, *kwargs) Create and return a new object. See help(type) for accurate signature.

Complete member index

Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.

Member Kind Signature Summary
Get function (self, *args: Any, **kwargs: Any) -> Any Native FL.Component.Get; argument details are not documented.
Paste function (self, *args: Any, **kwargs: Any) -> Any Native FL.Component.Paste; argument details are not documented.
__init__ function (self, /, *args: Any, **kwargs: Any) -> None Initialize self. (shared captured text)
transform function (self, *args: Any, **kwargs: Any) -> Any Native FL.Component.transform; argument details are not documented.