-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Settings - Editor - Font is garbled on macOS #13713
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
Comments
标题的字体问题: #13688 设置字体列表乱码稍后排查。 |
我那个PR应该只影响Windows,Mac上的字体问题我不清楚 @tinywaves 麻烦像这样操作看看标题渲染的字体是什么: video-uMuCWtO.mp4 |
|
麻烦用下面这个 CSS 代码片段测试一下,从 :root:lang(zh_CN) {
--emoji-font-family: "Emojis Additional", "Emojis Reset";
--b3-font-family: var(--emoji-font-family), BlinkMacSystemFont, Helvetica, "PingFang SC", "Luxi Sans", "DejaVu Sans", arial, "Microsoft Yahei", "Hiragino Sans GB", "Source Han Sans SC", sans-serif, emojis;
} |
估计和字体没有关系,应该是内核加载字体时的编码问题
…---Original---
From: "Jeffrey ***@***.***>
Date: Fri, Jan 3, 2025 17:21 PM
To: ***@***.***>;
Cc: ***@***.******@***.***>;
Subject: Re: [siyuan-note/siyuan] Settings - Editor - Font is garbled on macOS(Issue #13713)
我那个PR应该只影响Windows,Mac上的字体问题我不清楚
@tinywaves 麻烦像这样操作看看标题渲染的字体是什么:
https://github.com/user-attachments/assets/d133f0fe-6bb5-49dd-8165-5799aa767a6b
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were assigned.Message ID: ***@***.***>
|
if 和 else if 后面执行的代码不是一样的吗,为什么不合起来? |
稍后调整 |
那这个是正常的,不同语种的字体不同。 |
这个符合预期,默认是没有指定中文字体的。同一个字在简体中文、繁体中文、日语中显示的可能都不同。 |
所以我可以理解为这是思源在实现渲染引擎时特意实现的字体区域特化效果吗,相同的一个中文字,设置为日语和设置为简中可能看到不一样的渲染效果。 如果是特意这么实现的,那么字体设置的优先级就会非常低,某些字体没有设计地域变体,那么就会被回退,甚至无法得知回退到何种渲染方式。(比如我当前遇到的问题,所以我该如何去规避我这边遇到的问题,或者说一个美国人在使用思源,写了 |
这个字体优先级只是简单的 CSS 样式而已,之前用英文界面也能正常显示简体中文字形是因为没有考虑国际化,后面改了。 没法保证会回退到哪个字体,这个没办法,有需要的用户必须自行选择字体系列然后使用 CSS 代码片段。 补充:在操作系统中,日语字体的优先级一般高于中文字体。 |
文档的标题中文渲染似乎有问题
Is there an existing issue for this?
Can the issue be reproduced with the default theme (daylight/midnight)?
Could the issue be due to extensions?
Describe the problem
中文标题似乎在渲染上有问题,正文也有这个问题,有点像编码问题



我发现在选择字体的时候,选项全都乱码了,这个该咋解决
Expected result
/
Screenshot or screen recording presentation
No response
Version environment
Log file
/
More information
No response
The text was updated successfully, but these errors were encountered: