aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/svg/attribute/units-per-em
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
commit33058f2b292b3a581333bdfb21b8f671898c5060 (patch)
tree51c3e392513ec574331b2d3f85c394445ea803c6 /files/zh-cn/web/svg/attribute/units-per-em
parent8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff)
downloadtranslated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip
initial commit
Diffstat (limited to 'files/zh-cn/web/svg/attribute/units-per-em')
-rw-r--r--files/zh-cn/web/svg/attribute/units-per-em/index.html63
1 files changed, 63 insertions, 0 deletions
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
+---
+<div>{{SVGRef}}{{deprecated_header("SVG 2")}}</div>
+
+<p><span class="seoSummary">The <strong><code>units-per-em</code></strong> 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.</span> This is the size of the design grid on which {{Glossary("glyph", "glyphs")}} are laid out.</p>
+
+<div class="blockIndicator note">
+<p><strong>Note:</strong> This value is almost always necessary as nearly every other attribute requires the definition of a design grid.</p>
+</div>
+
+<p>Only one element is using this attribute: {{SVGElement("font-face")}}</p>
+
+<h2 id="Usage_notes">Usage notes</h2>
+
+<table class="properties">
+ <tbody>
+ <tr>
+ <th scope="row">Value</th>
+ <td><code><a href="/en-US/docs/Web/SVG/Content_type#Number">&lt;number&gt;</a></code></td>
+ </tr>
+ <tr>
+ <th scope="row">Default value</th>
+ <td><code>1000</code></td>
+ </tr>
+ <tr>
+ <th scope="row">Animatable</th>
+ <td>No</td>
+ </tr>
+ </tbody>
+</table>
+
+<dl>
+ <dt><code>&lt;number&gt;</code></dt>
+ <dd>This value indicates the the number of coordinate units on the em square.</dd>
+</dl>
+
+<h2 id="Specifications">Specifications</h2>
+
+<table class="standard-table">
+ <thead>
+ <tr>
+ <th scope="col">Specification</th>
+ <th scope="col">Status</th>
+ <th scope="col">Comment</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>{{SpecName("SVG1.1", "fonts.html#FontFaceElementUnitsPerEmAttribute", "units-per-em")}}</td>
+ <td>{{Spec2("SVG1.1")}}</td>
+ <td>Initial definition</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Browser_compatibility">Browser compatibility</h2>
+
+
+
+<p>{{Compat("svg.elements.font-face.units-per-em")}}</p>