Skip to content

Commit

Permalink
Rename canvas CSS text modifier property names
Browse files Browse the repository at this point in the history
textLetterSpacing → letterSpacing, and textWordSpacing → wordSpacing.

Closes #5617.
  • Loading branch information
yiyix authored Oct 20, 2021
1 parent db2d279 commit c4ec84c
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -61024,12 +61024,12 @@ interface mixin <dfn interface>CanvasTextDrawingStyles</dfn> {
attribute <span>CanvasTextAlign</span> <span data-x="dom-context-2d-textAlign">textAlign</span>; // (default: "start")
attribute <span>CanvasTextBaseline</span> <span data-x="dom-context-2d-textBaseline">textBaseline</span>; // (default: "alphabetic")
attribute <span>CanvasDirection</span> <span data-x="dom-context-2d-direction">direction</span>; // (default: "inherit")
attribute double <span data-x="dom-context-2d-textLetterSpacing">textLetterSpacing</span>; // (default: 0)
attribute double <span data-x="dom-context-2d-textWordSpacing">textWordSpacing</span>; // (default: 0)
attribute double <span data-x="dom-context-2d-letterSpacing">letterSpacing</span>; // (default: 0)
attribute <span>CanvasFontKerning</span> <span data-x="dom-context-2d-fontKerning">fontKerning</span>; // (default: "auto")
attribute <span>CanvasFontStretch</span> <span data-x="dom-context-2d-fontStretch">fontStretch</span>; // (default: "normal")
attribute <span>CanvasFontVariantCaps</span> <span data-x="dom-context-2d-fontVariantCaps">fontVariantCaps</span>; // (default: "normal")
attribute <span>CanvasTextRendering</span> <span data-x="dom-context-2d-textRendering">textRendering</span>; // (default: "auto")
attribute double <span data-x="dom-context-2d-wordSpacing">wordSpacing</span>; // (default: 0)
};

interface mixin <dfn interface>CanvasPath</dfn> {
Expand Down Expand Up @@ -61485,12 +61485,12 @@ context.fillRect(100,0,50,50); // only this square remains</code></pre>
data-x="dom-context-2d-textAlign">textAlign</code>, <code
data-x="dom-context-2d-textBaseline">textBaseline</code>, <code
data-x="dom-context-2d-direction">direction</code>, <code
data-x="dom-context-2d-textLetterSpacing">textLetterSpacing</code>, <code
data-x="dom-context-2d-textWordSpacing">textWordSpacing</code>, <code
data-x="dom-context-2d-letterSpacing">letterSpacing</code>, <code
data-x="dom-context-2d-fontKerning">fontKerning</code>, <code
data-x="dom-context-2d-fontStretch">fontStretch</code>, <code
data-x="dom-context-2d-fontVariantCaps">fontVariantCaps</code>, <code
data-x="dom-context-2d-textRendering">textRendering</code>, <code
data-x="dom-context-2d-wordSpacing">wordSpacing</code>, <code
data-x="dom-context-2d-imageSmoothingEnabled">imageSmoothingEnabled</code>, <code
data-x="dom-context-2d-imageSmoothingQuality">imageSmoothingQuality</code>.</li>
<li>The current <span>dash list</span>.</li>
Expand Down Expand Up @@ -62017,24 +62017,15 @@ transform. ack Shaun Morris. -->
data-x="dom-context-2d-direction-inherit">inherit</code>".</p>
</dd>

<dt><code data-x=""><var>context</var>.<span subdfn data-x="dom-context-2d-textLetterSpacing">textLetterSpacing</span> [ = <var>value</var> ]</code></dt>
<dt><code data-x=""><var>styles</var>.<span data-x="dom-context-2d-textLetterSpacing">textLetterSpacing</span> [ = <var>value</var> ]</code></dt>
<dt><code data-x=""><var>context</var>.<span subdfn data-x="dom-context-2d-letterSpacing">letterSpacing</span> [ = <var>value</var> ]</code></dt>
<dt><code data-x=""><var>styles</var>.<span data-x="dom-context-2d-letterSpacing">letterSpacing</span> [ = <var>value</var> ]</code></dt>
<dd>
<p>Returns the current spacing between characters in the text.</p>

<p>Can be set, to change spacing between characters. Postive values spreads characters further
apart, while negative values brings them closer together. The default is 0.</p>
</dd>

<dt><code data-x=""><var>context</var>.<span subdfn data-x="dom-context-2d-textWordSpacing">textWordSpacing</span> [ = <var>value</var> ]</code></dt>
<dt><code data-x=""><var>styles</var>.<span data-x="dom-context-2d-textWordSpacing">textWordSpacing</span> [ = <var>value</var> ]</code></dt>
<dd>
<p>Returns the current spacing between words in the text.</p>

<p>Can be set, to change spacing between words. Postive values spreads words further apart,
while negative values brings them closer together. The default is 0.</p>
</dd>

<dt><code data-x=""><var>context</var>.<span subdfn data-x="dom-context-2d-fontKerning">fontKerning</span> [ = <var>value</var> ]</code></dt>
<dt><code data-x=""><var>styles</var>.<span data-x="dom-context-2d-fontKerning">fontKerning</span> [ = <var>value</var> ]</code></dt>
<dd>
Expand Down Expand Up @@ -62074,6 +62065,15 @@ transform. ack Shaun Morris. -->
below. Other values are ignored. The default is "<code
data-x="dom-context-2d-textRendering-auto">auto</code>".</p>
</dd>

<dt><code data-x=""><var>context</var>.<span subdfn data-x="dom-context-2d-wordSpacing">wordSpacing</span> [ = <var>value</var> ]</code></dt>
<dt><code data-x=""><var>styles</var>.<span data-x="dom-context-2d-wordSpacing">wordSpacing</span> [ = <var>value</var> ]</code></dt>
<dd>
<p>Returns the current spacing between words in the text.</p>

<p>Can be set, to change spacing between words. Postive values spreads words further apart,
while negative values brings them closer together. The default is 0.</p>
</dd>
</dl>

<div w-nodev>
Expand Down Expand Up @@ -62226,19 +62226,11 @@ worker.postMessage(offscreenCanvas, [offscreenCanvas]);</code></pre>
data-x="dom-context-2d-direction-inherit">inherit</code>".</p>

<p>The <dfn attribute for="CanvasTextDrawingStyles"><code
data-x="dom-context-2d-textLetterSpacing">textLetterSpacing</code></dfn> IDL attribute, on
getting, must return the current value. On setting, the current value must be changed to the new
value, where values may be positive or negative. When the object implementing the
<code>CanvasTextDrawingStyles</code> interface is created,
the <code data-x="dom-context-2d-textLetterSpacing">textLetterSpacing</code> attribute must
initially have the value 0.</p>

<p>The <dfn attribute for="CanvasTextDrawingStyles"><code
data-x="dom-context-2d-textWordSpacing">textWordSpacing</code></dfn> IDL attribute, on
data-x="dom-context-2d-letterSpacing">letterSpacing</code></dfn> IDL attribute, on
getting, must return the current value. On setting, the current value must be changed to the new
value, where values may be positive or negative. When the object implementing the
<code>CanvasTextDrawingStyles</code> interface is created,
the <code data-x="dom-context-2d-textWordSpacing">textWordSpacing</code> attribute must
the <code data-x="dom-context-2d-letterSpacing">letterSpacing</code> attribute must
initially have the value 0.</p>

<p>The <dfn attribute for="CanvasTextDrawingStyles"><code
Expand Down Expand Up @@ -62268,6 +62260,14 @@ worker.postMessage(offscreenCanvas, [offscreenCanvas]);</code></pre>
value. When the object implementing the <code>CanvasTextDrawingStyles</code> interface is created,
the <code data-x="dom-context-2d-textRendering">textRendering</code> attribute must
initially have the value "<code data-x="dom-context-2d-textRendering-auto">auto</code>".</p>

<p>The <dfn attribute for="CanvasTextDrawingStyles"><code
data-x="dom-context-2d-wordSpacing">wordSpacing</code></dfn> IDL attribute, on
getting, must return the current value. On setting, the current value must be changed to the new
value, where values may be positive or negative. When the object implementing the
<code>CanvasTextDrawingStyles</code> interface is created,
the <code data-x="dom-context-2d-wordSpacing">wordSpacing</code> attribute must
initially have the value 0.</p>
</div>

<p>The <code data-x="dom-context-2d-textAlign">textAlign</code> attribute's allowed keywords are
Expand Down Expand Up @@ -62529,7 +62529,7 @@ worker.postMessage(offscreenCanvas, [offscreenCanvas]);</code></pre>
</tr>
<tr>
<td><span>'letter-spacing'</span></td>
<td><var>target</var>'s <code data-x="dom-context-2d-textLetterSpacing">textLetterSpacing</code></td>
<td><var>target</var>'s <code data-x="dom-context-2d-letterSpacing">letterSpacing</code></td>
</tr>
<tr>
<td><span>SVG text-rendering</span></td>
Expand All @@ -62541,7 +62541,7 @@ worker.postMessage(offscreenCanvas, [offscreenCanvas]);</code></pre>
</tr>
<tr>
<td><span>'word-spacing'</span></td>
<td><var>target</var>'s <code data-x="dom-context-2d-textWordSpacing">textWordSpacing</code></td>
<td><var>target</var>'s <code data-x="dom-context-2d-wordSpacing">wordSpacing</code></td>
</tr>
</tbody>
</table>
Expand Down

0 comments on commit c4ec84c

Please sign in to comment.