Skip to main content

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

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 style values: 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

ttkbootstrap_icons_fa-0.2.0.tar.gz (338.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ttkbootstrap_icons_fa-0.2.0-py3-none-any.whl (339.2 kB view details)

Uploaded Python 3

File details

Details for the file ttkbootstrap_icons_fa-0.2.0.tar.gz.

File metadata

  • Download URL: ttkbootstrap_icons_fa-0.2.0.tar.gz
  • Upload date:
  • Size: 338.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for ttkbootstrap_icons_fa-0.2.0.tar.gz
Algorithm Hash digest
SHA256 eb03a8a0f9387b81163eb860a910cd00d03dda67356e0d663c90fa4d4e5873a5
MD5 f7d975d1c42486c13720c3bdcd989e13
BLAKE2b-256 e3f5b47fbcb0d86e5a3fdf5971cbd347f0d1c59be810c1a0ace3c643ab3b637c

See more details on using hashes here.

File details

Details for the file ttkbootstrap_icons_fa-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ttkbootstrap_icons_fa-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a8f2febb118ba8f9afb47b987b29b58d73443a1ec983f02daf49b9e51575203f
MD5 3e5d06db2d14af4e61feca6ecc01904b
BLAKE2b-256 eee14579402869a88dfcbb39039b1a4fe4933743ebb61f809b410d36800b4156

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page