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): returnFontrecords 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 matchingFont.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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
90a676bec44f9ec79b1fd3dcdc77c9041ad1d7c8616167466be58fab142db92d
|
|
| MD5 |
6f614e5c627d90d243adc35626b7e8c1
|
|
| BLAKE2b-256 |
93dcfe6d5287460fb615f308f44f3fa3b31c5c4ce8b74d2119f4df59d370e9bf
|
Provenance
The following attestation bundles were made for devanagari_fonts-0.1.0.tar.gz:
Publisher:
python-publish.yml on nishantaMishra/devanagari-fonts
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
devanagari_fonts-0.1.0.tar.gz -
Subject digest:
90a676bec44f9ec79b1fd3dcdc77c9041ad1d7c8616167466be58fab142db92d - Sigstore transparency entry: 1596563690
- Sigstore integration time:
-
Permalink:
nishantaMishra/devanagari-fonts@abebf5473b5469f7c15dcde2c106702b1aeac0b8 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/nishantaMishra
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@abebf5473b5469f7c15dcde2c106702b1aeac0b8 -
Trigger Event:
release
-
Statement type:
File details
Details for the file devanagari_fonts-0.1.0-py3-none-any.whl.
File metadata
- Download URL: devanagari_fonts-0.1.0-py3-none-any.whl
- Upload date:
- Size: 33.9 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
86b7d5db36fe3361bf0ad7c3f0302fcbb9af7468d33ef17840b8fd65d422e2c7
|
|
| MD5 |
4b740a30fb3f37c5941cfde8cf897bce
|
|
| BLAKE2b-256 |
0fde1a4e74b2ee1190548fda67826d3bf5897afb2810c12950cebf533f0513e3
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
devanagari_fonts-0.1.0-py3-none-any.whl -
Subject digest:
86b7d5db36fe3361bf0ad7c3f0302fcbb9af7468d33ef17840b8fd65d422e2c7 - Sigstore transparency entry: 1596563774
- Sigstore integration time:
-
Permalink:
nishantaMishra/devanagari-fonts@abebf5473b5469f7c15dcde2c106702b1aeac0b8 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/nishantaMishra
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@abebf5473b5469f7c15dcde2c106702b1aeac0b8 -
Trigger Event:
release
-
Statement type: