Module builtin_font

Source
Expand description

Hand-rolled drawing of unicode characters that need to fully cover their character area.

Structsยง

Canvas ๐Ÿ”’
Canvas which is used for simple line drawing operations.
Pixel ๐Ÿ”’

Constantsยง

COLOR_FILL ๐Ÿ”’
Default color used for filling.
COLOR_FILL_ALPHA_STEP_1 ๐Ÿ”’
COLOR_FILL_ALPHA_STEP_2 ๐Ÿ”’
COLOR_FILL_ALPHA_STEP_3 ๐Ÿ”’
POWERLINE_ARROW_LTR ๐Ÿ”’
POWERLINE_ARROW_RTL ๐Ÿ”’
POWERLINE_TRIANGLE_LTR ๐Ÿ”’
POWERLINE_TRIANGLE_RTL ๐Ÿ”’

Functionsยง

box_drawing ๐Ÿ”’
builtin_glyph
Returns the rasterized glyph if the character is part of the built-in font.
calculate_stroke_size ๐Ÿ”’
Compute line width.
line_equation ๐Ÿ”’
f(x) = slope * x + offset equation.
powerline_drawing ๐Ÿ”’