RPG Awesome (font-based) provider for ttkbootstrap-icons
Project description
RPG Awesome (ttkbootstrap-icons-rpga)
RPG Awesome provider for ttkbootstrap-icons.
Install
pip install ttkbootstrap-icons-rpga
Requires ttkbootstrap-icons (installed automatically) and Pillow.
Info
- Name: RPG Awesome
- Source: https://github.com/nagoshiashumari/Rpg-Awesome (CDN: https://cdnjs.com/libraries/rpg-awesome)
- Class prefix:
ra-
License and Attribution
- Icons and code: MIT License (per repository license)
- Attribution: RPG Awesome — https://nagoshiashumari.github.io/Rpg-Awesome/
Usage
import tkinter as tk
from ttkbootstrap_icons_rpga import RPGAIcon
root = tk.Tk()
# Both base and prefixed names work: "sword" or "ra-sword"
icon = RPGAIcon("sword", size=24, color="#6f42c1")
tk.Button(root, image=icon.image, text="Sword", 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 the TTF and produce glyphmap.json with readable names from upstream CSS:
# Use preset (pulls TTF and CSS from cdnjs)
ttkicons-rpga-build --preset rpga --version 0.2.0
# Or specify sources directly
ttkicons-rpga-build \
--font-url https://cdnjs.cloudflare.com/ajax/libs/rpg-awesome/0.2.0/fonts/rpgawesome-webfont.ttf \
--css-url https://cdnjs.cloudflare.com/ajax/libs/rpg-awesome/0.2.0/css/rpg-awesome.min.css
If CSS is unavailable, the tool falls back to deriving a glyph map from the TTF (requires fonttools).
Changelog
| Version | Date | Notes |
|---|---|---|
| 0.1.0 | 2025-10-28 | Initial provider; CSS/TTF builder preset; ra- class map |
Project details
Release history Release notifications | RSS feed
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_rpga-0.1.0.tar.gz.
File metadata
- Download URL: ttkbootstrap_icons_rpga-0.1.0.tar.gz
- Upload date:
- Size: 110.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c69b78a8a5a4f2544d6f80b0d3552718a4e8adace8b8f95d5c7147e096112f0c
|
|
| MD5 |
8d1ce3fdd9f1aeeb1a391dc35d57c0e6
|
|
| BLAKE2b-256 |
98edb0be3f239764753e1d44444e4e7f104bb82541a97a548e16b3097815f9cb
|
File details
Details for the file ttkbootstrap_icons_rpga-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ttkbootstrap_icons_rpga-0.1.0-py3-none-any.whl
- Upload date:
- Size: 109.9 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 |
f6e3eb9b3ef06318c59ec8985084ad05bab2b21aea866edc1206fc4f47f121d5
|
|
| MD5 |
73bb0ed41ae3cc77a7d5ce39a9415dc9
|
|
| BLAKE2b-256 |
280154e5e66f379f522198ad3dcabce1c43d8ec6f53a419dc6130dd554bf80b0
|