Skip to content

fontlab_pens.stroke.StrokeStyle

StrokeStyle dataclass

A stroke in design units, independent of installed native capabilities.

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
__post_init__ function (self) -> None
cap0 attribute Cap
cap1 attribute Cap
contrast attribute float
from_variant function (cls, d: Mapping[str, Any]) -> StrokeStyle Read Proteus keys; thickness takes precedence over its width alias.
join attribute Join
miter_limit attribute float
proportion attribute float
remove_overlap attribute bool
rotation attribute float (shared captured text)
thickness attribute float (shared captured text)
to_variant function (self) -> dict[str, Any] Return Proteus keys with defaults omitted and percentages scaled.
with_ function (self, **changes: Any) -> StrokeStyle Return a validated copy with the requested fields replaced.