Skip to content

Commit b928e0d

Browse files
committed
Add "em" to text(), textmetrics(), fontmetrics().
Change "t" argument to text() and textmetrics() to "text", to match longstanding behavior. Rearrange textmetrics() arguments to match behavior (which has always matched text() behavior).
1 parent ec61065 commit b928e0d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cheatsheet/snapshot.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ <h2>2D</h2>
120120
<code><a href="https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Using_the_2D_Subsystem#polygon">polygon</a>([points])</code>
121121
<code><a href="https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Using_the_2D_Subsystem#polygon">polygon</a>([points],[paths])</code>
122122
<code>
123-
<a href="https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Text">text</a>(t, size, font, direction, language, script,
124-
<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;halign, valign, spacing)
123+
<a href="https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Text">text</a>(text, size, font, direction, language, script,
124+
<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;halign, valign, spacing, em)
125125
</code>
126126
<code><a href="https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Importing_Geometry#import">import</a>("&hellip;.<span class="tooltip">ext<span class="tooltiptext">formats: DXF|SVG</span></span>", center, convexity)</code>
127127
<code><a href="https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Using_the_2D_Subsystem#3D_to_2D_Projection">projection</a>(cut)</code>
@@ -239,8 +239,8 @@ <h2>Functions</h2>
239239
<code><a href="https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Other_Language_Features#OpenSCAD_Version">version</a></code>
240240
<code><a href="https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Other_Language_Features#OpenSCAD_Version">version_num</a></code>
241241
<code><a href="https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Other_Language_Features#parent_module.28n.29_and_.24parent_modules">parent_module</a>(idx)</code>
242-
<code><a href="https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Text#textmetrics()">textmetrics</a>(t, size, font,<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;halign, valign, spacing,<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;direction, language, script)</code>
243-
<code><a href="https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Text#fontmetrics()">fontmetrics</a>(size, font)</code>
242+
<code><a href="https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Text#textmetrics()">textmetrics</a>(text, size, font,<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;direction, language, script,<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;halign, valign, spacing, em)</code>
243+
<code><a href="https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Text#fontmetrics()">fontmetrics</a>(size, font, em)</code>
244244
</article>
245245
<article>
246246
<h2>Mathematical</h2>

0 commit comments

Comments
 (0)