From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../web/svg/attribute/units-per-em/index.html | 63 ++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 files/zh-cn/web/svg/attribute/units-per-em/index.html (limited to 'files/zh-cn/web/svg/attribute/units-per-em') diff --git a/files/zh-cn/web/svg/attribute/units-per-em/index.html b/files/zh-cn/web/svg/attribute/units-per-em/index.html new file mode 100644 index 0000000000..2ba20d42f8 --- /dev/null +++ b/files/zh-cn/web/svg/attribute/units-per-em/index.html @@ -0,0 +1,63 @@ +--- +title: units-per-em +slug: Web/SVG/Attribute/units-per-em +translation_of: Web/SVG/Attribute/units-per-em +--- +
{{SVGRef}}{{deprecated_header("SVG 2")}}
+ +

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")}}

+ +

Usage notes

+ + + + + + + + + + + + + + + + +
Value<number>
Default value1000
AnimatableNo
+ +
+
<number>
+
This value indicates the the number of coordinate units on the em square.
+
+ +

Specifications

+ + + + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName("SVG1.1", "fonts.html#FontFaceElementUnitsPerEmAttribute", "units-per-em")}}{{Spec2("SVG1.1")}}Initial definition
+ +

Browser compatibility

+ + + +

{{Compat("svg.elements.font-face.units-per-em")}}

-- cgit v1.2.3-54-g00ecf