W3cubDocs

/SVG

<font-face>

Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.

The <font-face> SVG element corresponds to the CSS @font-face rule. It defines a font's outer properties.

Usage context

Categories Font element
Permitted content Any number of descriptive elements » and at most one <font-face> element, in any order.

Attributes

Global attributes

Specific attributes

DOM Interface

This element implements the SVGFontFaceElement interface.

Specifications

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
font-face No No No No No No No No No No No No
accent-height No No No No No No No No No No No No
alphabetic No No No No No No No No No No No No
ascent No No No No No No No No No No No No
bbox No No No No No No No No No No No No
cap-height No No No No No No No No No No No No
descent No No No No No No No No No No No No
font-family No No No No No No No No No No No No
font-size No No No No No No No No No No No No
font-stretch No No No No No No No No No No No No
font-style No No No No No No No No No No No No
font-variant No No No No No No No No No No No No
font-weight No No No No No No No No No No No No
hanging No No No No No No No No No No No No
ideographic No No No No No No No No No No No No
mathematical No No No No No No No No No No No No
overline-position No No No No No No No No No No No No
overline-thickness No No No No No No No No No No No No
panose-1 No No No No No No No No No No No No
slope No No No No No No No No No No No No
stemh No No No No No No No No No No No No
stemv No No No No No No No No No No No No
strikethrough-position No No No No No No No No No No No No
strikethrough-thickness No No No No No No No No No No No No
underline-position No No No No No No No No No No No No
underline-thickness No No No No No No No No No No No No
unicode-range No No No No No No No No No No No No
units-per-em No No No No No No No No No No No No
v-alphabetic No No No No No No No No No No No No
v-hanging No No No No No No No No No No No No
v-ideographic No No No No No No No No No No No No
v-mathematical No No No No No No No No No No No No
widths No No No No No No No No No No No No
x-height No No No No No No No No No No No No

See also

© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/SVG/Element/font-face