Skip to content

fontlab.PaintBrushShape

PaintBrushShape

Data wrapper

The custom brush profile stored in PaintBrush.shape. This is a data object, not an enum of brush names.

PaintBrushShape() uses the native brush-profile defaults. Positional fields follow the table order; field keywords are supported. asTuple() and asDict() provide snapshots; indexing, item assignment and len() follow the same order. Modify an existing profile read from a PaintBrush, then assign it back to brush.shape and render the brush again.

Native bases: object

Captured native MRO: PaintBrushShape, object

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

Supplemental documentation: A data wrapper for a brush shape. The captured declaration exposes the attributes cap0, cap1, cap_length0, cap_length1 and data, and the methods asDict and asTuple, which represent the object as a dictionary or a tuple.

Source: FontLab Proteus API documentation

Source: generated/fontlab.py: PaintBrushShape captured declaration

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
__init__ function (self, /, *args: Any, **kwargs: Any) -> None Initialize self. (shared captured text)
asDict function (self, *args: Any, **kwargs: Any) -> Any Represent object as dictionary (shared captured text)
asTuple function (self, *args: Any, **kwargs: Any) -> Any Represent object as tuple (shared captured text)
cap0 attribute Any Start-cap setting.
cap1 attribute Any End-cap setting.
cap_length0 attribute Any Native start-cap length.
cap_length1 attribute Any Native end-cap length.
data attribute Any Brush-profile samples, converted through the native sequence converter.