Skip to main content

Bundled Devanagari font files with a small Python API for discovery and paths.

Project description

devanagari-fonts

devanagari-fonts bundles Devanagari font files and exposes a small Python API for listing families, locating files, and passing font paths to libraries such as Pillow, Matplotlib, ReportLab, or WeasyPrint.

Installation

Install from GitHub:

pip install git+https://github.com/nishantaMishra/devanagari-fonts.git

After the package is published to PyPI, it can be installed with:

pip install devanagari-fonts

Usage

from devanagari_fonts import families, font_path, fonts

print(families())
print(fonts("Hind"))

path = font_path("Hind", style="Regular")
print(path)

The package includes .ttf and .otf font files. Each font family keeps its bundled upstream license file alongside the font files under devanagari_fonts/fonts/.

API

  • families(): return available font family names.
  • fonts(family=None): return Font records for all fonts, or for one family.
  • font_files(family=None): return filesystem paths for available font files.
  • get_font(family, name=None, style=None): return a single matching Font.
  • font_path(family, name=None, style=None): return the filesystem path for a single matching font.

License

The Python package code is distributed under the MIT License. Bundled fonts are distributed under their own upstream licenses, included beside each font family.

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

devanagari_fonts-0.1.0.tar.gz (33.8 MB view details)

Uploaded Source

Built Distribution

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

devanagari_fonts-0.1.0-py3-none-any.whl (33.9 MB view details)

Uploaded Python 3

File details

Details for the file devanagari_fonts-0.1.0.tar.gz.

File metadata

  • Download URL: devanagari_fonts-0.1.0.tar.gz
  • Upload date:
  • Size: 33.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for devanagari_fonts-0.1.0.tar.gz
Algorithm Hash digest
SHA256 90a676bec44f9ec79b1fd3dcdc77c9041ad1d7c8616167466be58fab142db92d
MD5 6f614e5c627d90d243adc35626b7e8c1
BLAKE2b-256 93dcfe6d5287460fb615f308f44f3fa3b31c5c4ce8b74d2119f4df59d370e9bf

See more details on using hashes here.

Provenance

The following attestation bundles were made for devanagari_fonts-0.1.0.tar.gz:

Publisher: python-publish.yml on nishantaMishra/devanagari-fonts

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file devanagari_fonts-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for devanagari_fonts-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 86b7d5db36fe3361bf0ad7c3f0302fcbb9af7468d33ef17840b8fd65d422e2c7
MD5 4b740a30fb3f37c5941cfde8cf897bce
BLAKE2b-256 0fde1a4e74b2ee1190548fda67826d3bf5897afb2810c12950cebf533f0513e3

See more details on using hashes here.

Provenance

The following attestation bundles were made for devanagari_fonts-0.1.0-py3-none-any.whl:

Publisher: python-publish.yml on nishantaMishra/devanagari-fonts

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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