loonghao / photoshop-python-api

Python API for Photoshop.
https://loonghao.github.io/photoshop-python-api/
MIT License
641 stars 73 forks source link

请问如何给字体导入外部字体包 How can I import the font package externally? #342

Open Acong96 opened 6 months ago

Acong96 commented 6 months ago

new_text_layer = doc.artLayers.add() new_text_layer.textItem.font = fontpath 我使用这个并不奏效 This doesn’t work for me

Issues-translate-bot commented 6 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Title: How can I import the font package externally?

new_text_layer = doc.artLayers.add() new_text_layer.textItem.font = fontpath This doesn’t work for me

loonghao commented 6 months ago

你需要先安装字体到系统才行

Issues-translate-bot commented 6 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


You need to install the font to the system first

Acong96 commented 6 months ago

你需要先安装字体到系统才行

谢谢!

Issues-translate-bot commented 6 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


You need to install the font to the system first

Thanks!