Skip to main content

Devanagari font discovery, preview paths, and on-demand font installation.

Project description

devanagari-fonts

devanagari-fonts provides Devanagari font discovery, a small Python API for locating installed font files, and a command-line installer for downloading font families on demand.

The PyPI package is intentionally small. It includes the Python API, command-line tool, font registry metadata, and the Shobhika font family as a default bundled font. Other font families are downloaded into a user cache directory when requested.

Installation

Install from PyPI:

pip install devanagari-fonts

Install from GitHub:

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

Usage

List available bundles and font families:

devanagari-fonts list

Install a bundle:

devanagari-fonts install core
devanagari-fonts install noto
devanagari-fonts install display
devanagari-fonts install full

Install a single font family:

devanagari-fonts install hind
devanagari-fonts install akshar
devanagari-fonts install noto-sans-devanagari

Use installed fonts from Python:

from devanagari_fonts import available_families, families, font_path, fonts

print(available_families())  # all registry fonts
print(families())            # installed fonts
print(fonts("Hind"))

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

Downloaded fonts are stored in the user cache directory. To see the active cache directory:

devanagari-fonts cache-dir

Each font family keeps its upstream license file alongside the downloaded font files.

Available Fonts

Show registry font families
  • Akshar
  • Alkatra
  • Amiko
  • Amita
  • Anek Devanagari
  • Annapurna SIL
  • Arya
  • Asar
  • Bakbak One
  • Baloo 2
  • Bhavuka
  • Biryani
  • Cambay
  • Dekko
  • Eczar
  • Ek Mukta
  • Gajraj One
  • Glegoo
  • Gotu
  • Halant
  • Hind
  • IBM Plex Sans Devanagari
  • Inknut Antiqua
  • Jaini
  • Jaini Purva
  • Jaldi
  • Kadwa
  • Kalam
  • Karma
  • Khand
  • Khula
  • Kurale
  • Laila
  • Lohit Devanagari
  • Martel
  • Martel Sans
  • Matangi
  • Modak
  • Mukta
  • Noto Sans
  • Noto Sans Devanagari
  • Noto Sans Devanagari UI
  • Noto Serif Devanagari
  • Palanquin
  • Palanquin Dark
  • Playpen Sans Deva
  • Poppins
  • Pragati Narrow
  • Rajdhani
  • Ranga
  • Rhodium Libre
  • Rozha One
  • Sahitya
  • Sarala
  • Sarpanch
  • Shobhika-1.05
  • Sitara
  • Sumana
  • Sura
  • Teko
  • Tillana
  • Tiro Devanagari Hindi
  • Tiro Devanagari Marathi
  • Tiro Devanagari Sanskrit
  • Vesper Libre
  • Yantramanav
  • Yatra One

API

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

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.2.0.tar.gz (551.8 kB 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.2.0-py3-none-any.whl (548.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for devanagari_fonts-0.2.0.tar.gz
Algorithm Hash digest
SHA256 743e18a15f102e3677b9486469731083a1309b3315857c0ae24491e0dfdb2324
MD5 2b941b222fea02b6ec14f5dd6e22f01f
BLAKE2b-256 753a41406b31b2da910b4d793c5b31dee9a23c64a554e6b5c03bdd445dd8087f

See more details on using hashes here.

Provenance

The following attestation bundles were made for devanagari_fonts-0.2.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.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for devanagari_fonts-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 53c5aa128559a61d62a0c106da9022d6b6cca0b6671420c47499abe999e1442a
MD5 3e15ef7e5d2e0d8617d54ee6cd94f506
BLAKE2b-256 d268d39f8aa84f1e95f8d1dccb9a421328093416fa4f87b30a38b8051e49d527

See more details on using hashes here.

Provenance

The following attestation bundles were made for devanagari_fonts-0.2.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