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

Usage context

CategoriesFont element
Permitted contentAny 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.


Specification Status Comment
Scalable Vector Graphics (SVG) 1.1 (Second Edition)
The definition of '<font>' in that specification.
Recommendation Initial definition

Browser compatibility

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!

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

Document Tags and Contributors

 Contributors to this page: Sebastianz, iwarui, kscarfone, Jeremie, Manuel_Strehl
 Last updated by: Sebastianz,