|
def | font (self) |
|
def | get_query (self) |
|
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 | ex (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...
|
|
Definition at line 435 of file font.py.
◆ ex()
def lottie.utils.font.FontRenderer.ex |
( |
|
self, |
|
|
|
size |
|
) |
| |
◆ font()
def lottie.utils.font.FontRenderer.font |
( |
|
self | ) |
|
◆ get_query()
def lottie.utils.font.FontRenderer.get_query |
( |
|
self | ) |
|
◆ glyph_beziers()
def lottie.utils.font.FontRenderer.glyph_beziers |
( |
|
self, |
|
|
|
glyph, |
|
|
|
offset = NVector(0, 0) |
|
) |
| |
◆ glyph_name()
def lottie.utils.font.FontRenderer.glyph_name |
( |
|
self, |
|
|
|
ch |
|
) |
| |
◆ glyph_shapes()
def lottie.utils.font.FontRenderer.glyph_shapes |
( |
|
self, |
|
|
|
glyph, |
|
|
|
offset = NVector(0, 0) |
|
) |
| |
◆ kerning()
def lottie.utils.font.FontRenderer.kerning |
( |
|
self, |
|
|
|
c1, |
|
|
|
c2 |
|
) |
| |
◆ line_height()
def lottie.utils.font.FontRenderer.line_height |
( |
|
self, |
|
|
|
size |
|
) |
| |
◆ render()
def lottie.utils.font.FontRenderer.render |
( |
|
self, |
|
|
|
text, |
|
|
|
size, |
|
|
|
pos = None , |
|
|
|
use_kerning = True , |
|
|
|
start_x = None |
|
) |
| |
Renders some text.
- Parameters
-
| text | String to render |
| size | Font size (in pizels) |
[in,out] | pos | Text position |
| use_kerning | Whether to honour kerning info from the font file |
| start_x | x-position of the start of a line |
- Returns
- a Group shape, augmented with some extra attributes:
- line_height Line height
- next_x X position of the next character
Definition at line 514 of file font.py.
◆ scale()
def lottie.utils.font.FontRenderer.scale |
( |
|
self, |
|
|
|
size |
|
) |
| |
◆ text_to_chars()
def lottie.utils.font.FontRenderer.text_to_chars |
( |
|
self, |
|
|
|
text |
|
) |
| |
◆ tab_width
int lottie.utils.font.FontRenderer.tab_width = 4 |
|
static |
The documentation for this class was generated from the following file: