python-lottie  0.6.11+deved4e6c7
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:
Collaboration diagram for lottie.utils.font.FallbackFontRenderer:

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


Additional Inherited Members

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

Detailed Description

Definition at line 586 of file

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 587 of file

Member Function Documentation

◆ __repr__()

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

Definition at line 649 of file

◆ best()

def (   self)

Definition at line 608 of file

◆ ex()

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

Reimplemented from lottie.utils.font.FontRenderer.

Definition at line 601 of file

◆ fallback_renderer()

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

Definition at line 615 of file

◆ font()

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

Reimplemented from lottie.utils.font.FontRenderer.

Definition at line 595 of file

◆ get_query()

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

Reimplemented from lottie.utils.font.FontRenderer.

Definition at line 598 of file

Member Data Documentation

◆ max_attempts


Definition at line 592 of file

◆ query


Definition at line 588 of file

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