Skip to main content

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

  1. Sans-serif Fonts

    • Perfect for body text and UI elements
    • Includes: Roboto, Open Sans, Lato, Montserrat, and more
  2. Serif Fonts

    • Ideal for headings and long-form content
    • Includes: Merriweather, Playfair Display, Lora, and more
  3. Display Fonts

    • Great for headlines and attention-grabbing text
    • Includes: Bebas Neue, Pacifico, Dancing Script, and more
  4. Monospace Fonts

    • Perfect for code snippets and technical content
    • Includes: Source Code Pro, Fira Code, JetBrains Mono, and more
  5. Handwriting Fonts

    • Adds a personal touch to designs
    • Includes: Dancing Script, Caveat, Indie Flower, and more
  6. Decorative Fonts

    • Ideal for special occasions and unique designs
    • Includes: Abril, Akronim, Aladin, and more

License

MIT License - See LICENSE file for details.

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)

Uploaded Source

Built Distribution

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

canvas_fonts-0.2.0-py3-none-any.whl (9.7 MB view details)

Uploaded Python 3

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

Hashes for canvas_fonts-0.2.0.tar.gz
Algorithm Hash digest
SHA256 0c54c9cab3128a2d225b96f7d37149a96bc66097b3e21aab8243608e27b9769f
MD5 43d578ac9dc2cf8bcd22324bf791c406
BLAKE2b-256 3320fed3616f2aa7e0fb90e0567cb0eb96bd8bead5ce90d7b254481d4048760d

See more details on using hashes here.

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

Hashes for canvas_fonts-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2bafa2dd7e4ac49dced5da966f88c94ab0f5dcd1b6eda5c8fe6250fb1f23b5a0
MD5 993fc5346fd857d447b83a02c01de56a
BLAKE2b-256 6af701f749f2f69e221a4d8222c930fc749d34cf3faf5c504529736bf66d3299

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 files

0.1.0

2 files

Supported by

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