soupslurpr / BeauTyXT

A beautiful, private, secure, and minimalistic Text, Markdown, and Typst editor.
https://beautyxt.app
ISC License
103 stars 7 forks source link

Chinese fonts cannot be displayed in typst #141

Open shuen2023 opened 6 months ago

shuen2023 commented 6 months ago

I try to define font file. Place the downloaded ttf file in the folder. But when I edit the typst file preview, it doesn't show up.

soupslurpr commented 6 months ago

Did you follow this comment?: https://github.com/typst/typst/issues/416#issuecomment-1487995026

shuen2023 commented 6 months ago

Did you follow this comment?: typst/typst#416 (comment)

Yes I have seen that. But it doesn't seem to work
Screenshot_20240430_112259_com huawei filemanager Screenshot_20240430_112354_dev soupslurpr beautyxt

soupslurpr commented 6 months ago

Hm, have you tried capitalizing the w or maybe wenkai.ttf? Also could you share the file with me so I can try?

shuen2023 commented 6 months ago

嗯,您尝试过将 w 或 wenkai.ttf 大写吗?另外您可以与我分享该文件以便我尝试吗? Okay, thank you。

wenkai.zip

soupslurpr commented 6 months ago

Hm, oddly, it seems that the capability to use custom fonts is completely broken?

shuen2023 commented 6 months ago

Hm, oddly, it seems that the capability to use custom fonts is completely broken?

I do not know why either. I changed several fonts but still can't preview properly.