Open bigheadsnake opened 2 years ago
check out this issue in the python-docx
package and see if it helps you: https://github.com/python-openxml/python-docx/issues/154
East-Asia font is specified separately and there is no API support for that, but others have gotten it to work using the information in that issue and a PR that is linked from it.
I have solved this problem by editing xml. https://zhuanlan.zhihu.com/p/548039429
I found that if I change font name in a table or paragraph, it only works for the latin charaters and numbers, this is my code.
The attribute font size worked for all the characters in the text, but the font style STKaiti only worked for "abc123", the Asian word "测试" keeped the default Style, but if you select the word, the font attributes was already changed, if you type "enter" in the font sytle, it changed immediately.