<font-face>

已弃用: 不再推荐使用该特性。虽然一些浏览器仍然支持它,但也许已从相关的 web 标准中移除,也许正准备移除或出于兼容性而保留。请尽量不要使用该特性,并更新现有的代码;参见本页面底部的兼容性表格以指导你作出决定。请注意,该特性随时可能无法正常工作。

<font-face> SVG 元素对应于 CSS 的 @font-face 规则,用于定义字体的外部属性。

使用上下文

类别字体元素
允许的内容Any number of descriptive elements » and at most one <font-face> element, in any order.

属性

DOM 接口

此元素实现了 SVGFontFaceElement 接口。

规范

Specification
Scalable Vector Graphics (SVG) 1.1 (Second Edition)
# FontFaceElement

浏览器兼容性

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
font-face
Deprecated
accent-height
Deprecated
alphabetic
Deprecated
ascent
Deprecated
bbox
Deprecated
cap-height
Deprecated
descent
Deprecated
font-family
Deprecated
font-size
Deprecated
font-stretch
Deprecated
font-style
Deprecated
font-variant
Deprecated
font-weight
Deprecated
hanging
Deprecated
ideographic
Deprecated
mathematical
Deprecated
overline-position
Deprecated
overline-thickness
Deprecated
panose-1
Deprecated
slope
Deprecated
stemh
Deprecated
stemv
Deprecated
strikethrough-position
Deprecated
strikethrough-thickness
Deprecated
underline-position
Deprecated
underline-thickness
Deprecated
unicode-range
Deprecated
units-per-em
Deprecated
v-alphabetic
Deprecated
v-hanging
Deprecated
v-ideographic
Deprecated
v-mathematical
Deprecated
widths
Deprecated
x-height
Deprecated

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support
Deprecated. Not for use in new websites.

参见