SVG参考手册
分类 | Elements
font-face
弃用
该功能已从Web标准中删除。尽管一些浏览器可能仍然支持,但它正在被丢弃。避免使用它并尽可能更新现有的代码; 请参阅本页面底部的兼容性表格来指导您的决定。请注意,此功能可能随时停止工作。
<font-face>
SVG元素对应的CSS @font-face
规则。它定义了一个字体的外部属性。
用法上下文
分类 |
字体元素 |
---|---|
允许的内容 |
任何数量的描述性元素»和至多一个<font-face>元素,以任何顺序。 |
属性
全局属性
- Core attributesSpecific attributes
font-family
font-style
font-variant
font-weight
font-stretch
font-size
unicode-range
units-per-em
panose-1
stemv
stemh
slope
cap-height
x-height
accent-height
ascent
descent
widths
bbox
ideographic
alphabetic
mathematical
hanging
v-ideographic
v-alphabetic
v-mathematical
v-hanging
underline-position
underline-thickness
strikethrough-position
strikethrough-thickness
overline-position
overline-thickness
DOM接口
这个元素实现了SVGFontFaceElement
接口。
产品规格
Specification |
Status |
Comment |
---|---|---|
Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of '<font-face>' in that specification. |
Recommendation |
Initial definition |
浏览器兼容性
Feature |
Chrome |
Firefox (Gecko) |
Internet Explorer |
Opera |
Safari |
---|---|---|---|---|---|
Basic support |
? |
? |
? |
? |
? |
Feature |
Android |
Firefox Mobile (Gecko) |
IE Phone |
Opera Mobile |
Safari Mobile |
---|---|---|---|---|---|
Basic support |
? |
? |
? |
? |
? |