fontname
fontname is a lib for reading and decoding quirk encoded name records from OpenType fonts.
It is adept at dealing with CJK fonts and has been tested on over 10000 fonts.
Installation
pip install fontname
fontname requires Python 3.7 and above.
Usage examples
>>> import fontname
>>> fontname.get_display_names("msyh.ttc")
'微软雅黑 & Microsoft Yahei UI'
>>> from fontTools import ttLib
>>> tt = ttLib.TTFont("MO-UDShinGoSCGb4-Bol.otf")
>>> fontname.decode_name(tt['name'].names[19])
('森泽UD新黑 Gb4 B', <IssueLevel.MARK: 1>, 'x_mac_simp_chinese_ttx')
>>> tt.close()
>>> tt = ttLib.TTFont("文鼎粗圆简.TTF")
>>> fontname.decode_name(tt['name'].names[4])
('文鼎粗圆简', <IssueLevel.DATA: 2>, None)
>>> tt.close()
License
fontname is licensed under the MIT license.
Metadata
Release files for fontname 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fontname-1.0.0.tar.gz | 4.5 kB | Without provenance | Details for fontname-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fontname-1.0.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for fontname-1.0.0-py2.py3-none-any.whl |
Total release size: 9.4 kB
Release files / fontname-1.0.0.tar.gz
| Download URL | fontname-1.0.0.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f8a16081043e1af20705e211bda41b64c3f08a45785755daec539ae41281c5d1
|
|
BLAKE2b-256 checksum How to use checksums |
003b0d282acce368434b16a2e956ebfa18f59317854a5949fadb00edbeff0a8b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.28.1
|
Release files / fontname-1.0.0-py2.py3-none-any.whl
| Download URL | fontname-1.0.0-py2.py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
5ae6500da78e2f4904a422867d1d6ca7e3a486f2434cbdeeebe777c4ddd6d5ea
|
|
BLAKE2b-256 checksum How to use checksums |
ef6b208d143ec3bcd2201c551143ab9b84b1e1d5d47e61629a104bf457cfd185
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.28.1
|
Security for fontname 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.