--- title: string slug: Web/SVG/Attribute/string translation_of: Web/SVG/Attribute/string ---
The string
attribute is a hint to the user agent, and specifies a list of formats that the font referenced by the parent {{SVGElement("font-face-uri")}} element supports.
Only one element is using this attribute: {{SVGElement("font-face-format")}}
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 {{SVGElement("font-face-uri")}} element.
The available types are: "woff"
, "woff2"
, "truetype"
, "opentype"
, "embedded-opentype"
, and "svg"
. See the {{cssxref("@font-face/src", "src")}} descriptor of the {{cssxref("@font-face")}} at-rule for more information.
Specification | Status | Comment |
---|---|---|
{{SpecName("SVG1.1", "fonts.html#FontFaceFormatElementStringAttribute", "string")}} | {{Spec2("SVG1.1")}} | Initial definition |
{{Compat("svg.elements.font-face-format.string")}}