python-lottie  0.6.11+deved4e6c7
A framework to work with lottie files and telegram animated stickers (tgs)
lottie.objects.text.Font Class Reference
Inheritance diagram for lottie.objects.text.Font:
Collaboration diagram for lottie.objects.text.Font:

Public Member Functions

def __init__ (self, font_family="sans", font_style="Regular", name=None)
- Public Member Functions inherited from lottie.objects.base.LottieObject
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)
- Public Member Functions inherited from lottie.objects.base.LottieObjectMeta
def __new__ (cls, name, bases, attr)

Public Attributes


Detailed Description

Lottie JSON
Lottie name Type Description Attribute
ascent float   ascent
fFamily str   font_family
fName str   name
fStyle str   font_style
fPath str   path
fWeight str   weight
origin FontPathOrigin   origin
fClass str   css_class

Definition at line 210 of file

Constructor & Destructor Documentation

◆ __init__()

def lottie.objects.text.Font.__init__ (   self,
  font_family = "sans",
  font_style = "Regular",
  name = None 

Definition at line 222 of file

Member Data Documentation

◆ ascent


Definition at line 223 of file

◆ css_class


Definition at line 230 of file

◆ font_family


Definition at line 224 of file

◆ font_style


Definition at line 225 of file

◆ name

Definition at line 226 of file

◆ origin


Definition at line 229 of file

◆ path


Definition at line 227 of file

◆ weight


Definition at line 228 of file

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