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
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
windows_fonts-0.1.0a1.tar.gz
(13.9 kB
view hashes)
Built Distributions
Close
Hashes for windows_fonts-0.1.0a1-cp311-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8bc5196b015ab6ef421546ed96177bcbcc44c7fd2d1e721b9967c47f877544b6 |
|
MD5 | 9cb09eff151a3587338e576506fc5fca |
|
BLAKE2b-256 | e5a0280ff79ff8733d816d5dc7cb45c9e6fc29159cefa1e7fdc4a6395d9368d7 |
Close
Hashes for windows_fonts-0.1.0a1-cp310-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4a65e7afd7b7eef6be20a156f8ddad5005fca2d511e93994c6592bc0c646f96 |
|
MD5 | 4e1e8ccfbdee5b1b3e72a2eb95f4b6a4 |
|
BLAKE2b-256 | fee2f82e9a75fd793e2fa06159532b0adf7b31795f1f14398afdef70a06f5a2e |
Close
Hashes for windows_fonts-0.1.0a1-cp39-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52a6fdd81be14e3c816341e8c7fc1fbf2377a71e2866605c502d2b83426037ec |
|
MD5 | 9478abba09493a0c11904ec18f95ddcc |
|
BLAKE2b-256 | 5b4ad92439fa63c7889f6b4644918c7f4f0a3e1ebe8910506e6ec0331953bb7e |
Close
Hashes for windows_fonts-0.1.0a1-cp38-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ec094eb6519cfd04fe70ca9688f8195cae046a01e0213ef4b6dd93a029458c7 |
|
MD5 | 66a866c64549a1e22eb9b037b95b89b8 |
|
BLAKE2b-256 | 634fdc2b3a8b269edd3089fea058c2d1064c342ebb76268b92bee100434716bb |
Close
Hashes for windows_fonts-0.1.0a1-cp37-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17be5990b6ff891ae92a2488ddf8b57c78a33233e46c5feed25d4135bcac7195 |
|
MD5 | 6096b1c544a0c827cd1a133033f04c10 |
|
BLAKE2b-256 | 189f18044fc960b2f6d873dec9eac795db9c8b85f4e65c205723da567d569a4c |