loonghao / photoshop-python-api

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

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

Open Acong96 opened 4 months ago

Acong96 commented 4 months ago

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

Issues-translate-bot commented 4 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 4 months ago

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

Issues-translate-bot commented 4 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 4 months ago

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

谢谢!

Issues-translate-bot commented 4 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!