python-lottie  0.6.11+deva0e77a1
A framework to work with lottie files and telegram animated stickers (tgs)
lottie.utils.font.FontStyle Class Reference

Public Member Functions

def __init__ (self, query, size, justify=TextJustify.Left, position=None, use_kerning=True, emoji_svg=None)
 
def query (self)
 
def query (self, value)
 
def renderer (self)
 
def render (self, text, pos=NVector(0, 0))
 
def clone (self)
 
def ex (self)
 
def line_height (self)
 

Public Attributes

 emoji_svg
 
 size
 
 justify
 
 position
 
 use_kerning
 

Detailed Description

Definition at line 753 of file font.py.

Constructor & Destructor Documentation

◆ __init__()

def lottie.utils.font.FontStyle.__init__ (   self,
  query,
  size,
  justify = TextJustify.Left,
  position = None,
  use_kerning = True,
  emoji_svg = None 
)

Definition at line 754 of file font.py.

Member Function Documentation

◆ clone()

def lottie.utils.font.FontStyle.clone (   self)

Definition at line 794 of file font.py.

◆ ex()

def lottie.utils.font.FontStyle.ex (   self)

Definition at line 798 of file font.py.

◆ line_height()

def lottie.utils.font.FontStyle.line_height (   self)

Definition at line 802 of file font.py.

◆ query() [1/2]

def lottie.utils.font.FontStyle.query (   self)

Definition at line 772 of file font.py.

◆ query() [2/2]

def lottie.utils.font.FontStyle.query (   self,
  value 
)

Definition at line 776 of file font.py.

◆ render()

def lottie.utils.font.FontStyle.render (   self,
  text,
  pos = NVector(0, 0) 
)

Definition at line 784 of file font.py.

◆ renderer()

def lottie.utils.font.FontStyle.renderer (   self)

Definition at line 781 of file font.py.

Member Data Documentation

◆ emoji_svg

lottie.utils.font.FontStyle.emoji_svg

Definition at line 755 of file font.py.

◆ justify

lottie.utils.font.FontStyle.justify

Definition at line 758 of file font.py.

◆ position

lottie.utils.font.FontStyle.position

Definition at line 759 of file font.py.

◆ size

lottie.utils.font.FontStyle.size

Definition at line 757 of file font.py.

◆ use_kerning

lottie.utils.font.FontStyle.use_kerning

Definition at line 760 of file font.py.


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