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

Chromium 123 text-spacing-trim 与标点挤压冲突 #122

Open
Alan-Liang opened this issue Apr 5, 2024 · 0 comments
Open

Chromium 123 text-spacing-trim 与标点挤压冲突 #122

Alan-Liang opened this issue Apr 5, 2024 · 0 comments

Comments

@Alan-Liang
Copy link

Chromium 123 引入并默认启用了 CJK 标点挤压。在字体支持 chws 或 halt 特性时,会自动将符合条件的标点转换为半身。因此,若显示字体 fallback 到了思源等支持 chws 或 halt 的字体,标点会被挤压两次(浏览器和 js):

image

上图使用的版本为 123.0.6312.86 (正式版本) (64 位) ,字体为 Noto Sans CJK SC。

我们目前暂时关闭了 Chromium 的标点挤压(因为很多字体还没有支持所需的 OpenType 特性):

body {
    text-spacing-trim: space-all;
}

不知道是否有更好的解决方法?

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

1 participant