python-lottie  0.6.8+dev6bb61be
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:
[legend]
Collaboration diagram for lottie.objects.text.Font:
[legend]

Public Member Functions

def __init__ (self, font_family="sans", font_style="Regular", name=None)
 
- 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

 ascent
 
 font_family
 
 font_style
 
 name
 
 path
 
 weight
 
 origin
 

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

Definition at line 180 of file text.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 191 of file text.py.

Member Data Documentation

◆ ascent

lottie.objects.text.Font.ascent

Definition at line 192 of file text.py.

◆ font_family

lottie.objects.text.Font.font_family

Definition at line 193 of file text.py.

◆ font_style

lottie.objects.text.Font.font_style

Definition at line 194 of file text.py.

◆ name

lottie.objects.text.Font.name

Definition at line 195 of file text.py.

◆ origin

lottie.objects.text.Font.origin

Definition at line 198 of file text.py.

◆ path

lottie.objects.text.Font.path

Definition at line 196 of file text.py.

◆ weight

lottie.objects.text.Font.weight

Definition at line 197 of file text.py.


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