python-lottie  0.6.11+deva0e77a1
A framework to work with lottie files and telegram animated stickers (tgs)
lottie.objects.text.Chars Class Reference

Defines character shapes to avoid loading system fonts. More...

Inheritance diagram for lottie.objects.text.Chars:
Collaboration diagram for lottie.objects.text.Chars:

Public Member Functions

def __init__ (self)
def shapes (self)
- Public Member Functions inherited from lottie.objects.base.LottieObject
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)
- Public Member Functions inherited from lottie.objects.base.LottieObjectMeta
def __new__ (cls, name, bases, attr)

Public Attributes

 Character Value. More...
 Character Font Family. More...
 Character Font Size. More...
 Character Font Style. More...
 Character Width. More...
 Character Data. More...

Detailed Description

Defines character shapes to avoid loading system fonts.

Lottie JSON
Lottie name Type Description Attribute
ch str Character Value.   character
fFamily str Character Font Family.   font_family
size float Character Font Size.   font_size
style str Character Font Style.   font_style
w float Character Width.   width
data CharacterData Character Data.   data

Definition at line 260 of file

Constructor & Destructor Documentation

◆ __init__()

def lottie.objects.text.Chars.__init__ (   self)

Reimplemented from lottie.objects.base.LottieObject.

Definition at line 273 of file

Member Function Documentation

◆ shapes()

def lottie.objects.text.Chars.shapes (   self)

Definition at line 288 of file

Member Data Documentation

◆ character


Character Value.

Definition at line 275 of file

◆ data

Character Data.

Definition at line 285 of file

◆ font_family


Character Font Family.

Definition at line 277 of file

◆ font_size


Character Font Size.

Definition at line 279 of file

◆ font_style


Character Font Style.

Definition at line 281 of file

◆ width


Character Width.

Definition at line 283 of file

The documentation for this class was generated from the following file: