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

Public Member Functions

def __init__ (self, str="")
def family (self, name)
def weight (self, weight)
def css_weight (self, weight)
 Weight from CSS weight value. More...
def style (self, *styles)
def charset (self, *hex_ranges)
def char (self, char)
def custom (self, property, value)
def clone (self)
def __getitem__ (self, key)
def __contains__ (self, item)
def get (self, key, default=None)
def __str__ (self)
def __repr__ (self)
def weight_to_css (self)

Detailed Description

Constructor & Destructor Documentation

◆ __init__()

def lottie.utils.font.FontQuery.__init__ (   self,
  str = "" 

Definition at line 108 of file

Member Function Documentation

◆ __contains__()

def lottie.utils.font.FontQuery.__contains__ (   self,

Definition at line 170 of file

◆ __getitem__()

def lottie.utils.font.FontQuery.__getitem__ (   self,

Definition at line 167 of file

◆ __repr__()

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

Definition at line 183 of file

◆ __str__()

def lottie.utils.font.FontQuery.__str__ (   self)

Definition at line 176 of file

◆ char()

def lottie.utils.font.FontQuery.char (   self,

Definition at line 157 of file

◆ charset()

def lottie.utils.font.FontQuery.charset (   self,

Definition at line 153 of file

◆ clone()

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

Definition at line 164 of file

◆ css_weight()

def lottie.utils.font.FontQuery.css_weight (   self,

Weight from CSS weight value.

Weight is different between CSS and fontconfig This creates some interpolations to ensure known values are translated properly

See also

Definition at line 130 of file

◆ custom()

def lottie.utils.font.FontQuery.custom (   self,

Definition at line 160 of file

◆ family()

def (   self,

Definition at line 122 of file

◆ get()

def lottie.utils.font.FontQuery.get (   self,
  default = None 

Definition at line 173 of file

◆ style()

def (   self,

Definition at line 149 of file

◆ weight()

def lottie.utils.font.FontQuery.weight (   self,

Definition at line 126 of file

◆ weight_to_css()

def lottie.utils.font.FontQuery.weight_to_css (   self)

Definition at line 186 of file

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