font-optical-sizing

介绍

font-optical-sizing 属性用于设置文本渲染是否针对不同大小进行显示优化。

使用示例

语法

font-optical-sizing: auto;

形式定义

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

形式语法

font-optical-sizing =
  auto | none

与 Web 的区别

  • 与 Web 默认值是 auto 不同,Lynx 中默认值为 nonefont-optical-sizing 属性是对 font-variation-settings 属性的补充,光学尺寸变化轴在 font-variation-settings 中由 opsz 表示。

兼容性

LCD tables only load in the browser

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