Lucide API¶
ttkbootstrap_icons_lucide.icon
¶
LucideFontProvider
¶
Bases: BaseFontProvider
Initialize the provider with style configuration.
Uses a single font file (lucide.ttf) for all styles. Style selection
is performed by predicates that test for the suffix.
format_glyph_name(glyph_name)
staticmethod
¶
Display friendly name for font name
LucideIcon
¶
Bases: Icon
Convenience icon for the Lucide Icon glyph set.
Resolves the provided name (optionally with a style) using LucideProvider,
then initializes the base Icon with the resolved glyph.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
glyph name. |
required |
size
|
int
|
Pixel size of the rasterized image (default: 24). |
24
|
color
|
str
|
Foreground color used to render the glyph (default: "black"). |
'black'
|
Raises:
| Type | Description |
|---|---|
ValueError
|
If the name cannot be resolved for the requested style. |
ttkbootstrap_icons_lucide.provider
¶
LucideFontProvider
¶
Bases: BaseFontProvider
Initialize the provider with style configuration.
Uses a single font file (lucide.ttf) for all styles. Style selection
is performed by predicates that test for the suffix.
format_glyph_name(glyph_name)
staticmethod
¶
Display friendly name for font name