Skip to content

Fluent System Icons API

ttkbootstrap_icons_fluent.icon

FluentStyles = Literal['regular', 'filled', 'light'] module-attribute

FluentIcon

Bases: Icon

Convenience icon for the Fluent Icon glyph set.

Resolves the provided name (optionally with a style) using FluentProvider, then initializes the base Icon with the resolved glyph.

Parameters:

Name Type Description Default
name str

Glyph name. May be a friendly name (e.g. "settings-16") or a raw glyph (e.g. "settings-16-regular"). If you pass a conflicting style (e.g. name ends with "-regular" but you set style="filled"), a ValueError is raised.

required
size int

Pixel size of the rasterized image (default: 24).

24
color str

Foreground color used to render the glyph (default: "black").

'black'
style FluentStyles | None

Optional style override: "filled", "regular", "light". If omitted, the provider's default style is used. When name already encodes a style suffix (e.g. "-regular"), that suffix takes precedence.

None

Raises:

Type Description
ValueError

If the name cannot be resolved for the requested style.

FluentSystemFontProvider

Bases: BaseFontProvider

Initialize the provider with style configuration

format_glyph_name(glyph_name) staticmethod

Display friendly name for font name

ttkbootstrap_icons_fluent.provider

FluentSystemFontProvider

Bases: BaseFontProvider

Initialize the provider with style configuration

format_glyph_name(glyph_name) staticmethod

Display friendly name for font name