fontname-1.0.0
توضیحات
Read and decode quirk encoded name records from OpenType fonts.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | fontname-1.0.0 |
| نام | fontname |
| نسخه کتابخانه | 1.0.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | Asvel <fe.asvel@gmail.com> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/fontname/ |
| مجوز | - |
========
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
--------------
.. code:: python
>>> 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.
نیازمندی
| مقدار | نام |
|---|---|
| = | fonttools |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| ~=3.7 | Python |
نحوه نصب
نصب پکیج whl fontname-1.0.0:
pip install fontname-1.0.0.whl
نصب پکیج tar.gz fontname-1.0.0:
pip install fontname-1.0.0.tar.gz