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
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
text | positional or keyword | str | No default |
font | keyword-only | str | NativeFontFace | _DEFAULT_NATIVE_FONT |
font_size | keyword-only | float | 48.0 |
line_spacing | keyword-only | float | -1.0 |
color | keyword-only | _base.Color | _base.WHITE |
t2c | keyword-only | Not annotated | None |
kwargs | **kwargs | Any | No default |
Return annotation: None
No docstring declared here. Consult the source and host reference.
Text.text
Text.text(self) -> strDecorators: property
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
Return annotation: str
No docstring declared here. Consult the source and host reference.
Text.font
Text.font(self) -> strDecorators: property
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
Return annotation: str
No docstring declared here. Consult the source and host reference.
Text.line_spacing
Text.line_spacing(self) -> floatDecorators: property
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
Return annotation: float
No docstring declared here. Consult the source and host reference.
Text.get_center
Text.get_center(self) -> Any
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
Return annotation: Any
No docstring declared here. Consult the source and host reference.
Text.width
Text.width(self) -> floatDecorators: property
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
Return annotation: float
No docstring declared here. Consult the source and host reference.
Text.width
Text.width(self, value: float) -> NoneDecorators: width.setter
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
value | positional or keyword | float | No default |
Return annotation: None
No docstring declared here. Consult the source and host reference.
Text.height
Text.height(self) -> floatDecorators: property
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
Return annotation: float
No docstring declared here. Consult the source and host reference.
Text.height
Text.height(self, value: float) -> NoneDecorators: height.setter
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
value | positional or keyword | float | No default |
Return annotation: None
No docstring declared here. Consult the source and host reference.
Text.get_critical_point
Text.get_critical_point(self, direction: object) -> Any
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
direction | positional or keyword | object | No default |
Return annotation: Any
No docstring declared here. Consult the source and host reference.