---
title: <font>
slug: Web/SVG/Element/font
tags:
  - Deprecated
  - Element
  - NeedsExample
  - Reference
  - SVG
  - SVG Font
browser-compat: svg.elements.font
---
{{SVGRef}}{{deprecated_header}}

The **`<font>`** [SVG](/en-US/docs/Web/SVG) element defines a font to be used for text layout.

## Usage context

{{svginfo}}

## Attributes

### Global attributes

- [Core attributes](/en-US/docs/Web/SVG/Attribute#core_attributes)
- [Presentation attributes](/en-US/docs/Web/SVG/Attribute#presentation_attributes)
- {{SVGAttr("class")}}
- {{SVGAttr("style")}}

### Specific attributes

- {{SVGAttr("horiz-origin-x")}}
- {{SVGAttr("horiz-origin-y")}}
- {{SVGAttr("horiz-adv-x")}}
- {{SVGAttr("vert-origin-x")}}
- {{SVGAttr("vert-origin-y")}}
- {{SVGAttr("vert-adv-y")}}

## DOM Interface

This element implements the {{domxref("SVGFontElement")}} interface.

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}

## See also

- {{SVGElement("font-face")}}
- {{SVGElement("glyph")}}
- {{SVGElement("text")}}
- [SVG tutorial: SVG fonts](/en-US/docs/Web/SVG/Tutorial/SVG_fonts)
