Font Awesome Free (font-based) provider for ttkbootstrap-icons
Project description
Font Awesome (ttkbootstrap-icons-fa)
Font Awesome Free provider for ttkbootstrap-icons.
Install
pip install ttkbootstrap-icons-fa
Requires ttkbootstrap-icons (installed automatically) and Pillow.
Info
- Name: Font Awesome Free
- Icon Version (preset default): 6.5.2
- Source: https://fontawesome.com/ (CDN: https://cdnjs.com/libraries/font-awesome)
License and Attribution
- Fonts: SIL Open Font License 1.1 (OFL-1.1)
- Code (CSS/JS): MIT License
- Icon designs: Creative Commons Attribution 4.0 (CC BY 4.0)
- Attribution: Font Awesome — https://fontawesome.com/
Usage
import tkinter as tk
from ttkbootstrap_icons_fa import FAIcon
root = tk.Tk()
# Solid (default)
solid = FAIcon("house", size=24, color="#0d6efd", style="solid")
# Regular
regular = FAIcon("house", size=24, color="#0d6efd", style="regular")
# Brands
brand = FAIcon("github", size=24, color="#0d6efd", style="brands")
tk.Button(root, image=solid.image, text="Solid", compound="left").pack()
tk.Button(root, image=regular.image, text="Regular", compound="left").pack()
tk.Button(root, image=brand.image, text="Brand", compound="left").pack()
root.mainloop()
This package registers a provider entry point, so the base icon previewer will automatically discover it.
Generate assets (developer)
Use the bundled tool to fetch a TTF and produce glyphmap.json:
# Use a preset (Font Awesome 6 Free Solid via cdnjs)
ttkicons-fa-build --preset fa6-solid --version 6.5.2
# Or specify a direct URL
ttkicons-fa-build --font-url https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/webfonts/fa-solid-900.ttf
# Optional: supply metadata if you have it
ttkicons-fa-build --font-url ... --map-url https://example.com/metadata.json
If you omit metadata, the tool attempts to derive the glyphmap from the TTF (requires fonttools).
Styles
- This provider supports
stylevalues:solid(default),regular,brands. - Ensure the following fonts are present in
fonts/for full coverage:fa-solid-900.ttf,fa-regular-400.ttf,fa-brands-400.ttf
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ttkbootstrap_icons_fa-0.1.0.tar.gz.
File metadata
- Download URL: ttkbootstrap_icons_fa-0.1.0.tar.gz
- Upload date:
- Size: 338.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d1e6d3290180ef99df102d59239dd05197dec84f0c20aa334fe17384811d38b2
|
|
| MD5 |
88141a5c7b3ac4db931ad4ec5cb3cdab
|
|
| BLAKE2b-256 |
c2d9687d5a6685d845cbd7321d06c5f5785509952591897334c0d0d7a0febeda
|
File details
Details for the file ttkbootstrap_icons_fa-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ttkbootstrap_icons_fa-0.1.0-py3-none-any.whl
- Upload date:
- Size: 339.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
25d0a092b64175494fa3b03d23c255019548f19226d6d573dcfb08bee33ffd02
|
|
| MD5 |
301619d724ad81cb7478b5aec31ef9c1
|
|
| BLAKE2b-256 |
dc1766ce098148031eeff37d009370947dd7e2ebb79e697d9c7e0a3d5e32cf6d
|