Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Acong96 opened this issue May 23, 2024 · 5 comments

Comments

@Acong96
Copy link

Acong96 commented May 23, 2024

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

@Issues-translate-bot
Copy link

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

@Acong96 Acong96 changed the title 请问如何在外部导入字体包 请问如何给字体导入外部字体包 May 23, 2024
@Acong96 Acong96 changed the title 请问如何给字体导入外部字体包 请问如何给字体导入外部字体包 How can I import the font package externally? May 23, 2024
@loonghao
Copy link
Owner

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

@Issues-translate-bot
Copy link

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


You need to install the font to the system first

@Acong96
Copy link
Author

Acong96 commented May 27, 2024

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

谢谢!

@Issues-translate-bot
Copy link

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


You need to install the font to the system first

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants