google / google/fonts

Keep halt/vhal, chws/vchw OpenType features in CJK fonts

Open
#7,532 9 comments 3 reactions 0 assignees View on GitHub
-- Needs Eng team opinion I Font Bug II CJK
Dominant language
HTML
Stars
20.5k
Forks
2.9k
Avg merge
1d 21h
Merged PRs (30d)
95

Description

**Describe the bug**

[Chrome 123](https://chromestatus.com/feature/5170044014690304) now supports the CSS text-spacing-trim property for CJK Punctuation Width Adjustment.

In Chinese, Japanese, and Korean, applying kerning between punctuation characters improves the readability and produces more visually pleasing typography. Most printed materials and word processors apply this kerning today.

This blog post illustrates the feature: https://developer.chrome.com/blog/css-i18n-features#cjk_punctuation_kerning_text-spacing-trim

Currently, the Chrome implementation relies on fonts containing `halt/vhal`, `chws/vchw` OpenType features; however, Google Fonts removes them when subsetting, making text-spacing-trim unusable in Chrome.

**To Reproduce**

Demo: https://codepen.io/yisi/pen/vYMJPyK
Please test with Chrome Canary `125.0.6407.0`, there was an [issue](https://issues.chromium.org/issues/331684447) before that.

**Expected behavior**

Expect the same effect as the iconfont.cn in the example. The spacing between colons(`:`) and quotation(`「`) marks becomes smaller.

**Screenshots**

The font is: Noto Serif SC

![image](https://github.com/google/fonts/assets/2784308/b4d30d64-faa7-4e94-b5ae-84f452f0e914)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.