Skip to content

Improve font rendering on macOS #14356

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

Closed
TCOTC opened this issue Mar 14, 2025 · 9 comments
Closed

Improve font rendering on macOS #14356

TCOTC opened this issue Mar 14, 2025 · 9 comments
Assignees
Milestone

Comments

@TCOTC
Copy link
Contributor

TCOTC commented Mar 14, 2025

改进 Mac 下英文环境中的中文字体

貌似 BlinkMacSystemFont 仅适用于 Chrome,在 Firefox 和 Safari 上使用苹果字体还需要在 BlinkMacSystemFont 前加一个 -apple-system

另外 @Vanessa219 看看在 Mac 上的英文语言外观有没有 https://ld246.com/article/1741920376849 这种情况

Vanessa219 added a commit that referenced this issue Mar 20, 2025
@Vanessa219 Vanessa219 changed the title font-family 添加 -apple-system 改进 Mac 下英文环境中的中文字体 Mar 20, 2025
@Vanessa219 Vanessa219 added this to the 3.1.26 milestone Mar 20, 2025
@TCOTC
Copy link
Contributor Author

TCOTC commented Mar 20, 2025

-apple-system 呢?

@88250 88250 changed the title 改进 Mac 下英文环境中的中文字体 Improve font rendering on macOS Mar 20, 2025
@Vanessa219
Copy link
Member

好像和这个没有关系

@TCOTC
Copy link
Contributor Author

TCOTC commented Mar 21, 2025

链滴那个问题是附带的,我提 issue 主要是解决缺少 -apple-system 的问题

@TCOTC
Copy link
Contributor Author

TCOTC commented Mar 25, 2025

貌似 BlinkMacSystemFont 仅适用于 Chrome,在 Firefox 和 Safari 上使用苹果字体还需要在 BlinkMacSystemFont 前加一个 -apple-system

@Vanessa219 你那里可以验证一下吗

@Vanessa219
Copy link
Member

Safari 上是正常的

Image

@TCOTC
Copy link
Contributor Author

TCOTC commented Mar 26, 2025

如果系统安装了后面这些字体,那显示的还是苹果字体吗?

Image

@Vanessa219
Copy link
Member

优先使用前面的,没有的话就会使用后面的补全。

@TCOTC
Copy link
Contributor Author

TCOTC commented Mar 26, 2025

主要是我觉得 BlinkMacSystemFont 不起作用的话应该就会优先用后面的了。如果没有安装后面的字体,可能去掉 BlinkMacSystemFont 也还是显示为苹果字体

@Vanessa219
Copy link
Member

浏览器也可以自己设置字体的。

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

2 participants