|
def | __init__ (self, text="", font_size=10, color=None, font_family="") |
|
def | __init__ (self) |
|
def | to_dict (self) |
| Serializes into a JSON object fit for the Lottie format. More...
|
|
def | load (cls, lottiedict) |
| Loads from a JSON object. More...
|
|
def | find (self, search, propname="name") |
| Recursively searches for child objects with a matching property. More...
|
|
def | find_all (self, type, predicate=None, include_self=True) |
| Find all child objects that match a predicate. More...
|
|
def | clone (self) |
| Returns a copy of the object. More...
|
|
def | clone_into (self, other) |
|
def | __str__ (self) |
|
def | __new__ (cls, name, bases, attr) |
|
- See also
- http://docs.aenhancers.com/other/textdocument/
Note that for multi-line text, lines are separated by \r
- Lottie JSON
-
Definition at line 137 of file text.py.
◆ __init__()
def lottie.objects.text.TextDocument.__init__ |
( |
|
self, |
|
|
|
text = "" , |
|
|
|
font_size = 10 , |
|
|
|
color = None , |
|
|
|
font_family = "" |
|
) |
| |
◆ baseline_shift
lottie.objects.text.TextDocument.baseline_shift |
◆ fill_color
lottie.objects.text.TextDocument.fill_color |
Text color.
Definition at line 167 of file text.py.
◆ font_family
lottie.objects.text.TextDocument.font_family |
◆ font_size
lottie.objects.text.TextDocument.font_size |
◆ justify
lottie.objects.text.TextDocument.justify |
Text alignment.
Definition at line 177 of file text.py.
◆ line_height
lottie.objects.text.TextDocument.line_height |
Line height when wrapping.
Definition at line 175 of file text.py.
◆ stroke_color
lottie.objects.text.TextDocument.stroke_color |
◆ stroke_over_fill
lottie.objects.text.TextDocument.stroke_over_fill |
Render stroke above the fill.
Definition at line 172 of file text.py.
◆ stroke_width
lottie.objects.text.TextDocument.stroke_width |
◆ text
lottie.objects.text.TextDocument.text |
◆ text_caps
lottie.objects.text.TextDocument.text_caps |
Text caps.
Definition at line 187 of file text.py.
◆ tracking
lottie.objects.text.TextDocument.tracking |
Text Tracking.
Definition at line 189 of file text.py.
◆ wrap_position
lottie.objects.text.TextDocument.wrap_position |
Position of the box containing the text.
Definition at line 181 of file text.py.
◆ wrap_size
lottie.objects.text.TextDocument.wrap_size |
Size of the box containing the text.
Definition at line 179 of file text.py.
The documentation for this class was generated from the following file: