Skip to content

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

Description

@zhuxiaoming-xm

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions