<font-face>
已弃用: 不再推荐使用该特性。虽然一些浏览器仍然支持它,但也许已从相关的 web 标准中移除,也许正准备移除或出于兼容性而保留。请尽量不要使用该特性,并更新现有的代码;参见本页面底部的兼容性表格以指导你作出决定。请注意,该特性随时可能无法正常工作。
<font-face>
SVG 元素对应于 CSS 的 @font-face
规则,用于定义字体的外部属性。
使用上下文
类别 | 字体元素 |
---|---|
允许的内容 | Any number of descriptive elements » and at most one <font-face> element, in any order. |
属性
font-family
已弃用font-style (en-US)
已弃用font-variant (en-US)
已弃用font-weight (en-US)
已弃用font-stretch (en-US)
已弃用font-size (en-US)
已弃用unicode-range (en-US)
已弃用units-per-em (en-US)
已弃用panose-1 (en-US)
已弃用stemv (en-US)
已弃用stemh (en-US)
已弃用slope (en-US)
已弃用cap-height (en-US)
已弃用x-height (en-US)
已弃用accent-height
已弃用ascent (en-US)
已弃用descent (en-US)
已弃用widths (en-US)
已弃用bbox (en-US)
已弃用ideographic (en-US)
已弃用alphabetic (en-US)
已弃用mathematical (en-US)
已弃用hanging (en-US)
已弃用v-ideographic (en-US)
已弃用v-alphabetic (en-US)
已弃用v-mathematical (en-US)
已弃用v-hanging (en-US)
已弃用underline-position (en-US)
已弃用underline-thickness (en-US)
已弃用strikethrough-position (en-US)
已弃用strikethrough-thickness (en-US)
已弃用overline-position (en-US)
已弃用overline-thickness (en-US)
已弃用
DOM 接口
此元素实现了 SVGFontFaceElement
(en-US) 接口。
规范
Specification |
---|
Scalable Vector Graphics (SVG) 1.1 (Second Edition) # FontFaceElement |
浏览器兼容性
BCD tables only load in the browser