docx-ea-font
Fix the problem that the setting of East Asian fonts in python-docx is invalid or incorrect.
修正 python-docx 中东亚字体设置无效、不正确的问题。
Installation
pip install docx-ea-font
Example
from docx import Document
import docx_ea_font
doc = Document("tests/test.docx")
for paragraph in doc.paragraphs:
for run in paragraph.runs:
docx_ea_font.set_font(run, "楷体") # 传入一个 run 对象以及字体名称
doc.save('font-changed.docx')
Metadata
Release files for docx-ea-font 0.0.1
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 |
|---|---|---|---|---|
| docx_ea_font-0.0.1.tar.gz | 2.2 kB | Without provenance | Details for docx_ea_font-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| docx_ea_font-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for docx_ea_font-0.0.1-py3-none-any.whl |
Total release size: 4.9 kB
Release files / docx_ea_font-0.0.1.tar.gz
| Download URL | docx_ea_font-0.0.1.tar.gz |
|---|---|
| Size | 2.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b9c0e7fe55010cf9e2a5dccfd29f46d608e4d2c99153182cd71962d687975b0a
|
|
BLAKE2b-256 checksum How to use checksums |
80d516e2c0e998b5d161e85083fd818402b9b74adcb212f06d2a646cc04dc57d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
pdm/2.19.1 CPython/3.11.6 Windows/10
|
Release files / docx_ea_font-0.0.1-py3-none-any.whl
| Download URL | docx_ea_font-0.0.1-py3-none-any.whl |
|---|---|
| Size | 2.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9fa2bd29bd02e471bc259c8395d8a48ef18a89128e8420ebf73780bc5ac73782
|
|
BLAKE2b-256 checksum How to use checksums |
d1fb94a477f781d2a16cb4de6518cc75b6d708fab5505bfa603889092f315dd8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
pdm/2.19.1 CPython/3.11.6 Windows/10
|
Security for docx-ea-font 0.0.1
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.