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

Public Member Functions

def __init__ (self, query, max_attempts=10)
 
def font (self)
 
def get_query (self)
 
def ex (self, size)
 
def best (self)
 
def fallback_renderer (self, char)
 
def __repr__ (self)
 
- Public Member Functions inherited from lottie.utils.font.FontRenderer
def kerning (self, c1, c2)
 
def text_to_chars (self, text)
 
def glyph_name (self, ch)
 
def scale (self, size)
 
def line_height (self, size)
 
def glyph_beziers (self, glyph, offset=NVector(0, 0))
 
def glyph_shapes (self, glyph, offset=NVector(0, 0))
 
def render (self, text, size, pos=None, use_kerning=True, start_x=None)
 Renders some text. More...
 

Public Attributes

 query
 
 max_attempts
 

Additional Inherited Members

- Static Public Attributes inherited from lottie.utils.font.FontRenderer
int tab_width = 4
 

Detailed Description

Definition at line 586 of file font.py.

Constructor & Destructor Documentation

◆ __init__()

def lottie.utils.font.FallbackFontRenderer.__init__ (   self,
  query,
  max_attempts = 10 
)

Definition at line 587 of file font.py.

Member Function Documentation

◆ __repr__()

def lottie.utils.font.FallbackFontRenderer.__repr__ (   self)

Definition at line 649 of file font.py.

◆ best()

def lottie.utils.font.FallbackFontRenderer.best (   self)

Definition at line 608 of file font.py.

◆ ex()

def lottie.utils.font.FallbackFontRenderer.ex (   self,
  size 
)

Reimplemented from lottie.utils.font.FontRenderer.

Definition at line 601 of file font.py.

◆ fallback_renderer()

def lottie.utils.font.FallbackFontRenderer.fallback_renderer (   self,
  char 
)

Definition at line 615 of file font.py.

◆ font()

def lottie.utils.font.FallbackFontRenderer.font (   self)

Reimplemented from lottie.utils.font.FontRenderer.

Definition at line 595 of file font.py.

◆ get_query()

def lottie.utils.font.FallbackFontRenderer.get_query (   self)

Reimplemented from lottie.utils.font.FontRenderer.

Definition at line 598 of file font.py.

Member Data Documentation

◆ max_attempts

lottie.utils.font.FallbackFontRenderer.max_attempts

Definition at line 592 of file font.py.

◆ query

lottie.utils.font.FallbackFontRenderer.query

Definition at line 588 of file font.py.


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