CSS Fonts
CSS Fonts 是一个 CSS 模块,它定义字体相关的属性和字体资源是如何加载的。它允许定义一个字体的样式,如字体样式、尺寸大小或字体宽度,以及要使用的字形的变体(加粗、斜体等),对于一个字符有几个字形的字体。
参考文献
属性
font
font-family
font-feature-settings
font-kerning
font-language-override
font-size
font-size-adjust
font-stretch
font-style
font-synthesis
font-variant
font-variant-alternates
font-variant-caps
font-variant-east-asian
(en-US)font-variant-ligatures
font-variant-numeric
font-variant-position
font-weight
line-height
使用规则
Guide
None.
Specifications
Specification | Status | Comment |
---|---|---|
CSS Fonts Module Level 3 | Recommendation | |
CSS Level 2 (Revision 1) | Recommendation | |
CSS Level 1 | Recommendation | Initial definition |