--- title: units-per-em slug: Web/SVG/Attribute/units-per-em translation_of: Web/SVG/Attribute/units-per-em ---
The units-per-em
attribute specifies the number of coordinate units on the "em square", an abstract square whose height is the intended distance between lines of type in the same type size. This is the size of the design grid on which {{Glossary("glyph", "glyphs")}} are laid out.
Note: This value is almost always necessary as nearly every other attribute requires the definition of a design grid.
Only one element is using this attribute: {{SVGElement("font-face")}}
Value | <number> |
---|---|
Default value | 1000 |
Animatable | No |
<number>
Specification | Status | Comment |
---|---|---|
{{SpecName("SVG1.1", "fonts.html#FontFaceElementUnitsPerEmAttribute", "units-per-em")}} | {{Spec2("SVG1.1")}} | Initial definition |
{{Compat("svg.elements.font-face.units-per-em")}}