fontlab_pens.stroke.StrokeStyle · declarations 001
Back to fontlab_pens.stroke.StrokeStyle
__post_init__
__post_init__() -> None
contrast
class-attribute
instance-attribute
contrast: float
from_variant
classmethod
from_variant(d: Mapping[str, Any]) -> StrokeStyle
Read Proteus keys; thickness takes precedence over its width alias.
miter_limit
class-attribute
instance-attribute
miter_limit: float
proportion
class-attribute
instance-attribute
proportion: float
remove_overlap
class-attribute
instance-attribute
remove_overlap: bool
to_variant
to_variant() -> dict[str, Any]
Return Proteus keys with defaults omitted and percentages scaled.
with_
with_(**changes: Any) -> StrokeStyle
Return a validated copy with the requested fields replaced.