Skip to content

fonts

FONT_STACK is the Charité stack. Each brand has its own in Brand.font_stack (BIH: charite_plot.brands.bih.BIH_FONT_STACK, Trebuchet MS → DejaVu Sans → sans-serif).

fonts

Font detection and fallback utilities.

FONT_STACK = CHARITE_FONT_STACK module-attribute

build_font_stack(preferred, stack=FONT_STACK)

Return stack with preferred moved to the front (for matplotlib's font.sans-serif).

check_font(font, fallback=FONT_STACK)

Return True if font is available on this system, else warn and return False.