From b928e0d7bb5f92c040f1becdd234d414ac3b7273 Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Wed, 18 Mar 2026 20:44:30 -0700 Subject: [PATCH] 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). --- cheatsheet/snapshot.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cheatsheet/snapshot.html b/cheatsheet/snapshot.html index b60acee..00a8a4d 100644 --- a/cheatsheet/snapshot.html +++ b/cheatsheet/snapshot.html @@ -120,8 +120,8 @@

2D

polygon([points]) polygon([points],[paths]) - text(t, size, font, direction, language, script, -
     halign, valign, spacing) + text(text, size, font, direction, language, script, +
     halign, valign, spacing, em)
import("….extformats: DXF|SVG", center, convexity) projection(cut) @@ -239,8 +239,8 @@

Functions

version version_num parent_module(idx) - textmetrics(t, size, font,
     halign, valign, spacing,
     direction, language, script)
- fontmetrics(size, font) + textmetrics(text, size, font,
     direction, language, script,
     halign, valign, spacing, em)
+ fontmetrics(size, font, em)

Mathematical