One line of code, your ideal font is ready — EasyFont.
Project description
easyfont
One line of code, your ideal font is ready — EasyFont.
Install
pip install easyfont
Usage
import easyfont
from easyfont import Lang, FontConfig
from easyfont import getfont
def main():
print("Hello from easyfont!")
print(easyfont.__version__)
print(getfont()) # default font
print(easyfont.getfont(lang=Lang.EN_US)) # one language
print(getfont(lang=[Lang.EN_US, Lang.ZH_TW])) # multiple languages
cfg = FontConfig(lang=[Lang.EN_US, Lang.ZH_CN, Lang.ZH_TW]) # use FontConfig
print(getfont(cfg=cfg)) # use FontConfig with multiple languages
if __name__ == "__main__":
main()
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
easyfont-0.0.1.post10.tar.gz
(10.8 MB
view details)
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 easyfont-0.0.1.post10.tar.gz.
File metadata
- Download URL: easyfont-0.0.1.post10.tar.gz
- Upload date:
- Size: 10.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.7.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
32ba9eb02f1c515ff94bba8642bce033acc29130c7362f741ba489163760ae69
|
|
| MD5 |
4d61d64c821829f2991dfcd363ec04bd
|
|
| BLAKE2b-256 |
5763b992c57b67400d8d9720ff19b85f29b2a315b2e245e04f0549417398a189
|
File details
Details for the file easyfont-0.0.1.post10-py3-none-any.whl.
File metadata
- Download URL: easyfont-0.0.1.post10-py3-none-any.whl
- Upload date:
- Size: 10.9 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.7.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b126d82a1d69115febc2e29250faae3b56a6e409e8d5d923274e4471aa101cd2
|
|
| MD5 |
14c8efc0f439fff8fa57024c4d38e373
|
|
| BLAKE2b-256 |
388d6aab4701bbc7cac28004e5ad387fc62e87a8f87753ccf061e907ad057730
|