Skip to content

rs_rich.art.figlet

Generated from the type stubs by scripts/gen_python_api.py; do not edit.

rich_art::figlet: FIGlet banners.

STANDARD_FONT module-attribute

STANDARD_FONT: str

render module-attribute

render = figlet_render

Figlet

text property

text: str

font property

font: FigletFont

justify property

justify: str

width property

width: Optional[int]

to_text

to_text(width: Optional[int] = None) -> str

FigletFont

height property

height: int

hard_blank property

hard_blank: str

parse staticmethod

parse(source: str) -> FigletFont

standard staticmethod

standard() -> FigletFont

from_path staticmethod

from_path(path: Any) -> FigletFont

FigletFontError

Bases: ArtError

A FIGfont could not be parsed.

figlet_render

figlet_render(text: str, font: Optional[FigletFont] = None, width: int = 80, justify: Literal['left', 'center', 'right'] = 'left') -> str