Home / Market / text-typesetting

text-typesetting

Use when setting or reviewing line-height, letter-spacing (tracking), and vertical-trim/leading-trim for a text style — computing the geometric relationship between font size and these values for body text, headings, UI labels, or captions.

skill★ 00 dlclawhubMIT-0Install in CosmosUpstream Source

Documentation & Preview

Changelog — text-typesetting

All notable changes to this skill are documented here. Format follows Keep a Changelog and semantic versioning.

v1.2.0 — 2026-10-08

v1.1.0 — 2026-10-08

Figma Plugin API names corrected; one all-caps tracking formula

Checked against the Figma Plugin API docs and by reading text layers in a live Figma file (Foundations — Symphonia Score (Free), Typography page, read-only).

are replaced by one formula, TS = max(3%, min(12%, 160 / FS)), shared with glyph-fidelity Rule 1. The two skills used to return different values for the same size (14px: +6% vs +11.4%). Values change: 14px is now +11.4%, 20px is +8%, 40px is +4%.

does not exist on a text node and reading it throws.

Branch A; letterCase → textCase.

the skill now reads openTypeFeatures, flags KERN: false, and reports that a script cannot switch it back on.

openTypeFeatures is read-only. These are now reported as a step for the user, never as applied.

of a negative paragraphIndent (-0.45 × fontSize).

getStyledTextSegments; fontVariations does not exist.

variable are reported, not overridden on the node; lineHeight / letterSpacing written as { unit, value }.

off phrases is Bringhurst §5.2.1; the unspaced em dash is the Chicago Manual of Style convention, not Bringhurst's.

the x-height ratio (t = clamp((xr − 0.45) / 0.10, 0, 1)), with a labelled fallback to the serif / sans-serif rule. Anchors: Times 0.447 and Verdana 0.545, the W3C's reference faces for low and high x-height (CSS Fonts Module Level 5, §3.4). Direction: Butterick, "Line spacing". Heading and caption ranges are unchanged. The Figma measuring method (flatten a temporary x, read its height) was run in a scratch file: Inter 0.545, Roboto 0.528, EB Garamond 0.409, no nodes left behind.

the point size. Values change: body text now gets a tighter line-height than before.

the formula above it gives +0.02. The example now follows the formula (1.35 → 1.37).

be read and changes the result; always before a write. Lists the questions this skill may need.

v1.0.0 — 2026-07-08

Initial release.