Skip to main content

No project description provided

Project description

windows-fonts

Enumerate and discover fonts on Windows

Why this module exists

Most (all?) python modules that render text to an image (matplotlib, PIL/Pillow etc) need to take a filename on Windows, but happily take a font name on other platforms, which is a) annoying from a cross-platform standpoint, and b) requires a bit of "faff" for the user to discover the font file for a given font.

Example

from windows_fonts import FontCollection

fonts = FontCollection()

# TODO: Add a "get_best_match" to find the font name and variant
family = fonts['Arial']
variant = family[0]
print(variant.filename)

Requirements

Python >= 3.7 Windows Vista and up

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

windows_fonts-0.1.0a1.tar.gz (13.9 kB view details)

Uploaded Source

Built Distributions

windows_fonts-0.1.0a1-cp311-none-win_amd64.whl (152.4 kB view details)

Uploaded CPython 3.11 Windows x86-64

windows_fonts-0.1.0a1-cp310-none-win_amd64.whl (152.4 kB view details)

Uploaded CPython 3.10 Windows x86-64

windows_fonts-0.1.0a1-cp39-none-win_amd64.whl (152.7 kB view details)

Uploaded CPython 3.9 Windows x86-64

windows_fonts-0.1.0a1-cp38-none-win_amd64.whl (152.8 kB view details)

Uploaded CPython 3.8 Windows x86-64

windows_fonts-0.1.0a1-cp37-none-win_amd64.whl (152.7 kB view details)

Uploaded CPython 3.7 Windows x86-64

File details

Details for the file windows_fonts-0.1.0a1.tar.gz.

File metadata

  • Download URL: windows_fonts-0.1.0a1.tar.gz
  • Upload date:
  • Size: 13.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.8

File hashes

Hashes for windows_fonts-0.1.0a1.tar.gz
Algorithm Hash digest
SHA256 a1a9bd3f6b227eb36d145dab8fe611eeb42ec110dd99461ad837b8b1c58704cd
MD5 896d374573f8f0177a162ac88c6883ee
BLAKE2b-256 997623f3969cfba70131e51ab1acf477e3df704f2098978d1df7e26373c7f62f

See more details on using hashes here.

File details

Details for the file windows_fonts-0.1.0a1-cp311-none-win_amd64.whl.

File metadata

File hashes

Hashes for windows_fonts-0.1.0a1-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 8bc5196b015ab6ef421546ed96177bcbcc44c7fd2d1e721b9967c47f877544b6
MD5 9cb09eff151a3587338e576506fc5fca
BLAKE2b-256 e5a0280ff79ff8733d816d5dc7cb45c9e6fc29159cefa1e7fdc4a6395d9368d7

See more details on using hashes here.

File details

Details for the file windows_fonts-0.1.0a1-cp310-none-win_amd64.whl.

File metadata

File hashes

Hashes for windows_fonts-0.1.0a1-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 a4a65e7afd7b7eef6be20a156f8ddad5005fca2d511e93994c6592bc0c646f96
MD5 4e1e8ccfbdee5b1b3e72a2eb95f4b6a4
BLAKE2b-256 fee2f82e9a75fd793e2fa06159532b0adf7b31795f1f14398afdef70a06f5a2e

See more details on using hashes here.

File details

Details for the file windows_fonts-0.1.0a1-cp39-none-win_amd64.whl.

File metadata

File hashes

Hashes for windows_fonts-0.1.0a1-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 52a6fdd81be14e3c816341e8c7fc1fbf2377a71e2866605c502d2b83426037ec
MD5 9478abba09493a0c11904ec18f95ddcc
BLAKE2b-256 5b4ad92439fa63c7889f6b4644918c7f4f0a3e1ebe8910506e6ec0331953bb7e

See more details on using hashes here.

File details

Details for the file windows_fonts-0.1.0a1-cp38-none-win_amd64.whl.

File metadata

File hashes

Hashes for windows_fonts-0.1.0a1-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 4ec094eb6519cfd04fe70ca9688f8195cae046a01e0213ef4b6dd93a029458c7
MD5 66a866c64549a1e22eb9b037b95b89b8
BLAKE2b-256 634fdc2b3a8b269edd3089fea058c2d1064c342ebb76268b92bee100434716bb

See more details on using hashes here.

File details

Details for the file windows_fonts-0.1.0a1-cp37-none-win_amd64.whl.

File metadata

File hashes

Hashes for windows_fonts-0.1.0a1-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 17be5990b6ff891ae92a2488ddf8b57c78a33233e46c5feed25d4135bcac7195
MD5 6096b1c544a0c827cd1a133033f04c10
BLAKE2b-256 189f18044fc960b2f6d873dec9eac795db9c8b85f4e65c205723da567d569a4c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page