Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[giow] (1) Clarify TextMetrics.emHeightAscent and emHeightDescent in …
…the multifont case.

Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=24723
Affected topics: Canvas

git-svn-id: http://svn.whatwg.org/webapps@8486 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Feb 20, 2014
1 parent 8714611 commit 6396fb9
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 18 deletions.
14 changes: 8 additions & 6 deletions complete.html
Expand Up @@ -57725,18 +57725,20 @@ <h6 id=drawing-text-to-the-bitmap><span class=secno>4.12.4.2.12 </span>Drawing t

<dt><dfn id=dom-textmetrics-emheightascent title=dom-textmetrics-emHeightAscent><code>emHeightAscent</code></dfn> attribute</dt>

<dd><p>The distance from the horizontal line indicated by the <code title=dom-context-2d-textBaseline><a href=#dom-context-2d-textbaseline>textBaseline</a></code> attribute to the top of the em square in
<!--CLEANUP-->
<dd><p>The distance from the horizontal line indicated by the <code title=dom-context-2d-textBaseline><a href=#dom-context-2d-textbaseline>textBaseline</a></code> attribute to the highest top of the em squares in
the line box, in CSS pixels; positive numbers indicating that the given baseline is below the top
of the em square (so this value will usually be positive). Zero if the given baseline is the top
of the em square; half the font size if the given baseline is the middle of the em
of that em square (so this value will usually be positive). Zero if the given baseline is the top
of that em square; half the font size if the given baseline is the middle of that em
square.</dd>

<dt><dfn id=dom-textmetrics-emheightdescent title=dom-textmetrics-emHeightDescent><code>emHeightDescent</code></dfn> attribute</dt>

<dd><p>The distance from the horizontal line indicated by the <code title=dom-context-2d-textBaseline><a href=#dom-context-2d-textbaseline>textBaseline</a></code> attribute to the bottom of the em square
<!--CLEANUP-->
<dd><p>The distance from the horizontal line indicated by the <code title=dom-context-2d-textBaseline><a href=#dom-context-2d-textbaseline>textBaseline</a></code> attribute to the lowest bottom of the em squares
in the line box, in CSS pixels; positive numbers indicating that the given baseline is below the
bottom of the em square (so this value will usually be negative). (Zero if the given baseline is
the top of the em square.)</dd>
bottom of that em square (so this value will usually be negative). (Zero if the given baseline is
the top of that em square.)</dd>

<dt><dfn id=dom-textmetrics-hangingbaseline title=dom-textmetrics-hangingBaseline><code>hangingBaseline</code></dfn> attribute</dt>

Expand Down
14 changes: 8 additions & 6 deletions index
Expand Up @@ -57725,18 +57725,20 @@ v6DVT (also check for '- -' bits in the part above) --><p>The <dfn id=dom-contex

<dt><dfn id=dom-textmetrics-emheightascent title=dom-textmetrics-emHeightAscent><code>emHeightAscent</code></dfn> attribute</dt>

<dd><p>The distance from the horizontal line indicated by the <code title=dom-context-2d-textBaseline><a href=#dom-context-2d-textbaseline>textBaseline</a></code> attribute to the top of the em square in
<!--CLEANUP-->
<dd><p>The distance from the horizontal line indicated by the <code title=dom-context-2d-textBaseline><a href=#dom-context-2d-textbaseline>textBaseline</a></code> attribute to the highest top of the em squares in
the line box, in CSS pixels; positive numbers indicating that the given baseline is below the top
of the em square (so this value will usually be positive). Zero if the given baseline is the top
of the em square; half the font size if the given baseline is the middle of the em
of that em square (so this value will usually be positive). Zero if the given baseline is the top
of that em square; half the font size if the given baseline is the middle of that em
square.</dd>

<dt><dfn id=dom-textmetrics-emheightdescent title=dom-textmetrics-emHeightDescent><code>emHeightDescent</code></dfn> attribute</dt>

<dd><p>The distance from the horizontal line indicated by the <code title=dom-context-2d-textBaseline><a href=#dom-context-2d-textbaseline>textBaseline</a></code> attribute to the bottom of the em square
<!--CLEANUP-->
<dd><p>The distance from the horizontal line indicated by the <code title=dom-context-2d-textBaseline><a href=#dom-context-2d-textbaseline>textBaseline</a></code> attribute to the lowest bottom of the em squares
in the line box, in CSS pixels; positive numbers indicating that the given baseline is below the
bottom of the em square (so this value will usually be negative). (Zero if the given baseline is
the top of the em square.)</dd>
bottom of that em square (so this value will usually be negative). (Zero if the given baseline is
the top of that em square.)</dd>

<dt><dfn id=dom-textmetrics-hangingbaseline title=dom-textmetrics-hangingBaseline><code>hangingBaseline</code></dfn> attribute</dt>

Expand Down
14 changes: 8 additions & 6 deletions source
Expand Up @@ -64159,20 +64159,22 @@ v6DVT (also check for '- -' bits in the part above) -->

<dt><dfn data-x="dom-textmetrics-emHeightAscent"><code>emHeightAscent</code></dfn> attribute</dt>

<!--CLEANUP-->
<dd><p>The distance from the horizontal line indicated by the <code
data-x="dom-context-2d-textBaseline">textBaseline</code> attribute to the top of the em square in
data-x="dom-context-2d-textBaseline">textBaseline</code> attribute to the highest top of the em squares in
the line box, in CSS pixels; positive numbers indicating that the given baseline is below the top
of the em square (so this value will usually be positive). Zero if the given baseline is the top
of the em square; half the font size if the given baseline is the middle of the em
of that em square (so this value will usually be positive). Zero if the given baseline is the top
of that em square; half the font size if the given baseline is the middle of that em
square.</p></dd>

<dt><dfn data-x="dom-textmetrics-emHeightDescent"><code>emHeightDescent</code></dfn> attribute</dt>

<!--CLEANUP-->
<dd><p>The distance from the horizontal line indicated by the <code
data-x="dom-context-2d-textBaseline">textBaseline</code> attribute to the bottom of the em square
data-x="dom-context-2d-textBaseline">textBaseline</code> attribute to the lowest bottom of the em squares
in the line box, in CSS pixels; positive numbers indicating that the given baseline is below the
bottom of the em square (so this value will usually be negative). (Zero if the given baseline is
the top of the em square.)</p></dd>
bottom of that em square (so this value will usually be negative). (Zero if the given baseline is
the top of that em square.)</p></dd>

<dt><dfn data-x="dom-textmetrics-hangingBaseline"><code>hangingBaseline</code></dfn> attribute</dt>

Expand Down

0 comments on commit 6396fb9

Please sign in to comment.