The <font> SVG element defines a font to be used for text layout.

Usage context

Categories Font element
Permitted content Any number of the following elements, in any order:
Descriptive elements
<font-face>, <glyph>, <hkern>, <missing-glyph>, <vkern>


Global attributes

Specific attributes

DOM Interface

This element implements the SVGFontElement interface.


Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support ? No support[1] ? ? ?
Feature Android Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
Basic support ? No support[1] ? ? ?

[1] See bug 119490.

The chart is based on these sources.

See also

© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.