canvas_fonts
A Python library providing 200+ fonts for use in canvas editors like Fabric.js-based applications.
Features
- 200+ carefully curated fonts from Google Fonts
- Organized into categories:
- Sans-serif fonts (Roboto, Open Sans, etc.)
- Serif fonts (Merriweather, Playfair Display, etc.)
- Display fonts (Bebas Neue, Pacifico, etc.)
- Monospace fonts (Source Code Pro, Fira Code, etc.)
- Handwriting fonts (Dancing Script, Caveat, etc.)
- Decorative fonts (Abril, Akronim, etc.)
- Easy-to-use API for font management
- Compatible with most canvas-based editors
Installation
pip install canvas-fonts
Usage
from canvas_fonts import get_fonts, get_font_path
# List all available fonts
fonts = get_fonts()
print(fonts) # Returns list of 200+ font names
# Get path to a specific font file
path = get_font_path("Roboto")
print(path) # Returns absolute path to Roboto.ttf
Font Categories
-
Sans-serif Fonts
- Perfect for body text and UI elements
- Includes: Roboto, Open Sans, Lato, Montserrat, and more
-
Serif Fonts
- Ideal for headings and long-form content
- Includes: Merriweather, Playfair Display, Lora, and more
-
Display Fonts
- Great for headlines and attention-grabbing text
- Includes: Bebas Neue, Pacifico, Dancing Script, and more
-
Monospace Fonts
- Perfect for code snippets and technical content
- Includes: Source Code Pro, Fira Code, JetBrains Mono, and more
-
Handwriting Fonts
- Adds a personal touch to designs
- Includes: Dancing Script, Caveat, Indie Flower, and more
-
Decorative Fonts
- Ideal for special occasions and unique designs
- Includes: Abril, Akronim, Aladin, and more
License
MIT License - See LICENSE file for details.
Metadata
Release files for canvas-fonts 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| canvas_fonts-0.2.0.tar.gz | 9.6 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| canvas_fonts-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.3 MB
Release files / canvas_fonts-0.2.0.tar.gz
| Download URL | canvas_fonts-0.2.0.tar.gz |
|---|---|
| Size | 9.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0c54c9cab3128a2d225b96f7d37149a96bc66097b3e21aab8243608e27b9769f
|
|
BLAKE2b-256 checksum How to use checksums |
3320fed3616f2aa7e0fb90e0567cb0eb96bd8bead5ce90d7b254481d4048760d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.12
|
Release files / canvas_fonts-0.2.0-py3-none-any.whl
| Download URL | canvas_fonts-0.2.0-py3-none-any.whl |
|---|---|
| Size | 9.7 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2bafa2dd7e4ac49dced5da966f88c94ab0f5dcd1b6eda5c8fe6250fb1f23b5a0
|
|
BLAKE2b-256 checksum How to use checksums |
6af701f749f2f69e221a4d8222c930fc749d34cf3faf5c504529736bf66d3299
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.12
|