On this page

Text

from noon import Text

Source-derived class. Host availability is not inferred from this listing. See reference scope.

Bases: _RetainedTextMobject. Declared members follow; inherited and dynamically attached members are not expanded.

Deterministic native plain text compiled and rendered entirely by Rust.

Text.__init__

Text.__init__(self, text: str, *, font: str | NativeFontFace=_DEFAULT_NATIVE_FONT, font_size: float=48.0, line_spacing: float=-1.0, color: _base.Color=_base.WHITE, t2c=None, **kwargs: Any) -> None
ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default
textpositional or keywordstrNo default
fontkeyword-onlystr | NativeFontFace_DEFAULT_NATIVE_FONT
font_sizekeyword-onlyfloat48.0
line_spacingkeyword-onlyfloat-1.0
colorkeyword-only_base.Color_base.WHITE
t2ckeyword-onlyNot annotatedNone
kwargs**kwargsAnyNo default

Return annotation: None

No docstring declared here. Consult the source and host reference.

Source declaration

Text.text

Text.text(self) -> str

Decorators: property

ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default

Return annotation: str

No docstring declared here. Consult the source and host reference.

Source declaration

Text.font

Text.font(self) -> str

Decorators: property

ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default

Return annotation: str

No docstring declared here. Consult the source and host reference.

Source declaration

Text.line_spacing

Text.line_spacing(self) -> float

Decorators: property

ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default

Return annotation: float

No docstring declared here. Consult the source and host reference.

Source declaration

Text.get_center

Text.get_center(self) -> Any
ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default

Return annotation: Any

No docstring declared here. Consult the source and host reference.

Source declaration

Text.width

Text.width(self) -> float

Decorators: property

ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default

Return annotation: float

No docstring declared here. Consult the source and host reference.

Source declaration

Text.width

Text.width(self, value: float) -> None

Decorators: width.setter

ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default
valuepositional or keywordfloatNo default

Return annotation: None

No docstring declared here. Consult the source and host reference.

Source declaration

Text.height

Text.height(self) -> float

Decorators: property

ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default

Return annotation: float

No docstring declared here. Consult the source and host reference.

Source declaration

Text.height

Text.height(self, value: float) -> None

Decorators: height.setter

ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default
valuepositional or keywordfloatNo default

Return annotation: None

No docstring declared here. Consult the source and host reference.

Source declaration

Text.get_critical_point

Text.get_critical_point(self, direction: object) -> Any
ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default
directionpositional or keywordobjectNo default

Return annotation: Any

No docstring declared here. Consult the source and host reference.

Source declaration