bootstack.style.set_font_family#

bootstack.style.set_font_family(family, *, mono_family=None)#

Set the application font family for all non-code text.

Every token except code is switched to family; the monospace code token is left untouched unless mono_family is given. If a requested family is not installed, a warning is issued and the current fonts are left unchanged.

Parameters:
  • family (str) – Font family for body, heading, label, and caption text (e.g. 'Segoe UI', 'Inter'). Must be installed.

  • mono_family (str | None) – Optional family for the code token. Defaults to leaving the existing monospace family in place.