font-variation-settings

介绍

font-variation-settings 属性为可变字体特性提供了底层控制,让你可以指定要改变的特性的四字母轴名称及其值。

使用示例

语法

font-variation-settings: 'wght' 750;

形式定义

初始值normal
适用元素text
是否支持继承yes
是否支持动画no

形式语法

font-variation-settings =
  normal                        |
  [ <opentype-tag> <number> ]#

<opentype-tag> =
  <string>

兼容性

LCD tables only load in the browser

除非另有说明,本项目采用知识共享署名 4.0 国际许可协议进行许可,代码示例采用 Apache License 2.0 许可协议进行许可。