VisActor / VisActor/VRender

[Feature] fontVariant支持设置font-variant-numeric相关的值

Open
#1,974 1 comment 0 reactions 2 assignees View on GitHub

@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,实现让数字展示为等宽字体。这在表格的场景比较有用,对用户来说,等宽字体的数字在表格中可以快速的对比数字位数,方便理解各数据间的大小。
Image

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.