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

Improve system font loading #13356

Closed
3 tasks done
Mctalos opened this issue Dec 3, 2024 · 3 comments
Closed
3 tasks done

Improve system font loading #13356

Mctalos opened this issue Dec 3, 2024 · 3 comments
Assignees
Milestone

Comments

@Mctalos
Copy link

Mctalos commented Dec 3, 2024

关于字体设置、导出PDF的问题

Is there an existing issue for this?

  • I have searched the existing issues

Can the issue be reproduced with the default theme (daylight/midnight)?

  • I was able to reproduce the issue with the default theme

Could the issue be due to extensions?

  • I've ruled out the possibility that the extension is causing the problem.

Describe the problem

问题一:思源笔记如果 外观设置为 英文,在字体设置中,就找不到汉字字体,比如思源宋体、思源黑体等。
需要将外观设置改为中文→编辑器字体设置为思源宋体→外观设置为英文。当然不是啥大问题,但是我习惯系统、软件都是英文,工作文档当然得用中文了。其他很多软件比如office,界面显示语言不影响字体设置,可以显示中文字体的。
20241203_21-41-32

问题二:如果编辑器字体设置为思源宋体,那么在导出PDF的时候,就不显示文字了,如下图所示。疑似没有在PDF中嵌入字体文件所致?

20241203_20-18-04 20241203_20-25-40

Expected result

如果在导出PDF中嵌入编辑器设置的字体

Screenshot or screen recording presentation

No response

Version environment

- Version: v3.1.14
- Operating System: win10
- Browser (if used):

Log file

siyuan.log

More information

No response

@TCOTC
Copy link
Contributor

TCOTC commented Dec 3, 2024

思源宋体和思源黑体是你自己安装的吗?


我这里复现不了

@Mctalos
Copy link
Author

Mctalos commented Dec 3, 2024

思源宋体和思源黑体是你自己安装的吗?

我这里复现不了

是的呀,字体已经确认安装到系统了。
思源编辑器里能看到,其他软件也是能识别的。
就是思源导出PDF不显示文字了,数字倒是能正常显示。

20241203_21-37-39 20241203_21-37-02

@88250 88250 self-assigned this Dec 5, 2024
@88250
Copy link
Member

88250 commented Dec 5, 2024

  • 问题 1 稍后改进
  • 问题 2 我这里也重现不了,不确定是不是你那边 PDF 阅读器的问题

另外加入字体缓存,如果要加载新安装的字体需要重启思源。

@88250 88250 added this to the 3.1.15 milestone Dec 5, 2024
@88250 88250 changed the title 关于字体设置、导出PDF的问题 Improve system font loading Dec 5, 2024
88250 added a commit that referenced this issue Dec 5, 2024
88250 added a commit that referenced this issue Dec 5, 2024
@88250 88250 closed this as completed Dec 5, 2024
mouyase pushed a commit to mouyase/siyuan that referenced this issue Feb 28, 2025
mouyase pushed a commit to mouyase/siyuan that referenced this issue Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants