Introduction
SVG 1.1 defines a way to describe a font in SVG itself. Such a font may sit inside a
drawing or in a .svg file of its own. It is not the same thing as the
SVG table inside an OpenType font.
Structure
A font element holds a font-face element, which describes
the font, and glyph elements, each mapped to characters by its
unicode attribute and drawn by path data or child elements.
missing-glyph, hkern and vkern may also
appear.
Not described
This page is a first outline. The attributes are not yet described here.
Known, not yet covered
- Reference: the attributes of each element and the glyph selection rules.
- Viewer: the site has no viewer for SVG fonts.
Also used for
- Scalable Vector Graphics – The web’s vector format: shapes, text and gradients written as XML.
Links
Software
- FontForge – free, open-source font editor that can generate SVG fonts (Windows, macOS, Linux)
Reference
- SVG 1.1, Fonts – the W3C definition
- OpenType SVG table – the separate table, whose SVG documents must not use
fontelements - FontForge: Generate Fonts – the output formats, SVG among them