A library providing 200+ fonts for canvas editors
Project description
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.
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
canvas_fonts-0.2.0.tar.gz
(9.6 MB
view details)
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 canvas_fonts-0.2.0.tar.gz.
File metadata
- Download URL: canvas_fonts-0.2.0.tar.gz
- Upload date:
- Size: 9.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c54c9cab3128a2d225b96f7d37149a96bc66097b3e21aab8243608e27b9769f
|
|
| MD5 |
43d578ac9dc2cf8bcd22324bf791c406
|
|
| BLAKE2b-256 |
3320fed3616f2aa7e0fb90e0567cb0eb96bd8bead5ce90d7b254481d4048760d
|
File details
Details for the file canvas_fonts-0.2.0-py3-none-any.whl.
File metadata
- Download URL: canvas_fonts-0.2.0-py3-none-any.whl
- Upload date:
- Size: 9.7 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2bafa2dd7e4ac49dced5da966f88c94ab0f5dcd1b6eda5c8fe6250fb1f23b5a0
|
|
| MD5 |
993fc5346fd857d447b83a02c01de56a
|
|
| BLAKE2b-256 |
6af701f749f2f69e221a4d8222c930fc749d34cf3faf5c504529736bf66d3299
|