python-lottie  0.6.11+deved4e6c7
A framework to work with lottie files and telegram animated stickers (tgs)
lottie.utils.font.FontShape Class Reference
Inheritance diagram for lottie.utils.font.FontShape:
[legend]
Collaboration diagram for lottie.utils.font.FontShape:
[legend]

Public Member Functions

def __init__ (self, text="", query="", size=64, justify=TextJustify.Left)
 
def query_string (self)
 
def query_string (self, v)
 
def bounding_box (self, time=0)
 
- Public Member Functions inherited from lottie.objects.base.CustomObject
def __init__ (self)
 
def load (cls, lottiedict)
 Loads from a JSON object. More...
 
def clone (self)
 Returns a copy of the object. More...
 
def to_dict (self)
 Serializes into a JSON object fit for the Lottie format. More...
 
def refresh (self)
 
- Public Member Functions inherited from lottie.objects.base.LottieObject
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_into (self, other)
 
def __str__ (self)
 
- Public Member Functions inherited from lottie.objects.base.LottieObjectMeta
def __new__ (cls, name, bases, attr)
 

Public Attributes

 style
 
 text
 
 hidden
 
 line_height
 
- Public Attributes inherited from lottie.objects.base.CustomObject
 wrapped
 

Static Public Attributes

 wrapped_lottie = Group
 
 query = _propfac("query")
 
 size = _propfac("size")
 
 justify = _propfac("justify")
 
 position = _propfac("position")
 
- Static Public Attributes inherited from lottie.objects.base.CustomObject
 wrapped_lottie = LottieObject
 

Detailed Description

Definition at line 810 of file font.py.

Constructor & Destructor Documentation

◆ __init__()

def lottie.utils.font.FontShape.__init__ (   self,
  text = "",
  query = "",
  size = 64,
  justify = TextJustify.Left 
)

Definition at line 820 of file font.py.

Member Function Documentation

◆ bounding_box()

def lottie.utils.font.FontShape.bounding_box (   self,
  time = 0 
)

Definition at line 853 of file font.py.

◆ query_string() [1/2]

def lottie.utils.font.FontShape.query_string (   self)

Definition at line 841 of file font.py.

◆ query_string() [2/2]

def lottie.utils.font.FontShape.query_string (   self,
  v 
)

Definition at line 845 of file font.py.

Member Data Documentation

◆ hidden

lottie.utils.font.FontShape.hidden

Definition at line 827 of file font.py.

◆ justify

lottie.utils.font.FontShape.justify = _propfac("justify")
static

Definition at line 837 of file font.py.

◆ line_height

lottie.utils.font.FontShape.line_height

Definition at line 850 of file font.py.

◆ position

lottie.utils.font.FontShape.position = _propfac("position")
static

Definition at line 838 of file font.py.

◆ query

lottie.utils.font.FontShape.query = _propfac("query")
static

Definition at line 835 of file font.py.

◆ size

lottie.utils.font.FontShape.size = _propfac("size")
static

Definition at line 836 of file font.py.

◆ style

lottie.utils.font.FontShape.style

Definition at line 823 of file font.py.

◆ text

lottie.utils.font.FontShape.text

Definition at line 826 of file font.py.

◆ wrapped_lottie

lottie.utils.font.FontShape.wrapped_lottie = Group
static

Definition at line 818 of file font.py.


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