python-lottie  0.6.10+dev4166086
A framework to work with lottie files and telegram animated stickers (tgs)
lottie.objects.assets.Chars Class Reference

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

Inheritance diagram for lottie.objects.assets.Chars:
[legend]
Collaboration diagram for lottie.objects.assets.Chars:
[legend]

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

Public Attributes

 character
 Character Value. More...
 
 font_family
 Character Font Family. More...
 
 font_size
 Character Font Size. More...
 
 font_style
 Character Font Style. More...
 
 width
 Character Width. More...
 
 data
 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 154 of file assets.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 167 of file assets.py.

Member Function Documentation

◆ shapes()

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

Definition at line 182 of file assets.py.

Member Data Documentation

◆ character

lottie.objects.assets.Chars.character

Character Value.

Definition at line 169 of file assets.py.

◆ data

lottie.objects.assets.Chars.data

Character Data.

Definition at line 179 of file assets.py.

◆ font_family

lottie.objects.assets.Chars.font_family

Character Font Family.

Definition at line 171 of file assets.py.

◆ font_size

lottie.objects.assets.Chars.font_size

Character Font Size.

Definition at line 173 of file assets.py.

◆ font_style

lottie.objects.assets.Chars.font_style

Character Font Style.

Definition at line 175 of file assets.py.

◆ width

lottie.objects.assets.Chars.width

Character Width.

Definition at line 177 of file assets.py.


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