string

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

The string attribute is a hint to the user agent, and specifies a list of formats that the font referenced by the parent <font-face-uri> element supports.

Only one element is using this attribute: <font-face-format>

Usage notes

Value <anything>
Default value None
Animatable No
<anything>

This value specifies a list of formats that are supported by the font referenced by the parent <font-face-uri> element.The available types are: "woff", "woff2", "truetype", "opentype", "embedded-opentype", and "svg". See the src descriptor of the @font-face at-rule for more information.

Specifications

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

Browser compatibility

BCD tables only load in the browser