[Feature] fontVariant支持设置font-variant-numeric相关的值
Open
@Rui-Sun is already working on this.
Since Nov 3, 2025.
- Dominant language
- TypeScript
- Stars
- 263
- Forks
- 50
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 16
Description
What problem does this feature solve?
目前fontVariant的表现跟html不一致,html中可以设置font-variant-numeric相关的值,如lining-nums tabular-nums,实现让数字展示为等宽字体。这在表格的场景比较有用,对用户来说,等宽字体的数字在表格中可以快速的对比数字位数,方便理解各数据间的大小。
What does the proposed API look like?
fontVariant: 'lining-nums tabular-nums'
具体详细可参考:https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Properties/font-variant-numeric
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.