Web & App Design
Typography
Type carries most of an interface. Nox gives you a set of fonts that look the same on every Mac, the controls to set size, line height and spacing exactly, text styles to keep them consistent, and the finer details: lists, text cut to a number of lines, OpenType features and text set along a path.

Fonts that come with Nox#
Ten families are part of Nox: Inter, Geist, DM Sans, Manrope, Plus Jakarta Sans, Rubik, Roboto, Space Grotesk, Lora and JetBrains Mono. A document set in them looks the same on any Mac with Nox, and when an agent draws it.
The font menu in the Text section lists them, with the system face, by where an interface runs:
| Group | Families |
|---|---|
| iOS & macOS | SF Pro, the system's own face |
| Android | Roboto |
| Web | Inter, Geist, Manrope, DM Sans, Plus Jakarta Sans |
| Game UI | Space Grotesk, Rubik, JetBrains Mono |
| Serif | Lora |
Above them come the fonts you used lately and those already in the file, with how many texts use each, marked missing where this Mac lacks it. Type in the search field to find any font installed on the Mac.
Adding your own#
Choose File › Add Fonts…, or Add fonts… at the foot of the font menu, and pick .ttf, .otf or .ttc files. Nox copies them into its own fonts and lists them under Added. They are not installed in macOS.
A font that is not on the Mac where the file is opened is drawn in Inter, and the design check reports it (fonts). To carry a font with a document, an agent can call embed_fonts: it puts the files of the faces in use into the .ndf. It checks the font's own embedding permission, not its license, so embed only what you are allowed to pass on.
Size, line height and letter spacing#
The Text section has Size, Line and Letter. Line height is baseline to baseline in points; left empty it is Auto, the font's own. Letter spacing is extra space after each character, in points, and may be negative.

A scale of four sizes covers most screens. Tighten spacing as type grows and open it slightly for small text:
| Role | Font | Size / line | Letter |
|---|---|---|---|
| Display | Geist 700 | 48 / 52 | -1.5 |
| Title | Geist 600 | 28 / 34 | -0.5 |
| Body | Inter 400 | 16 / 24 | 0 |
| Caption | Inter 500 | 12 / 16 | +0.2 |

Body text at 1.5 times its size reads well in paragraphs; headlines want 1.1 or less.
Text styles#
A text style holds a font, size, weight, line height, letter spacing, paragraph spacing and case. Every text that follows it changes when it changes. Color is not part of a text style.
Set one text the way you want it. In the Text section open Style and choose New Style from This…, and name it Text/Body. On another text, choose it from the same menu.
Make text styles for my scale: Display Geist 48/52 bold -1.5, Title Geist 28/34 semibold -0.5, Body Inter 16/24, Caption Inter 12/16 medium +0.2.
The agent calls create_nodes with nodes of kind style:
{"nodes": [
{"kind": "style", "name": "Text/Display", "font_family": "Geist", "font_size": 48, "font_weight": 700, "line_height": 52, "letter_spacing": -1.5},
{"kind": "style", "name": "Text/Title", "font_family": "Geist", "font_size": 28, "font_weight": 600, "line_height": 34, "letter_spacing": -0.5},
{"kind": "style", "name": "Text/Body", "font_family": "Inter", "font_size": 16, "font_weight": 400, "line_height": 24},
{"kind": "style", "name": "Text/Caption", "font_family": "Inter", "font_size": 12, "font_weight": 500, "line_height": 16, "letter_spacing": 0.2}
]}
A text then follows one with "text_style": "STYLE_ID".
Styles covers changing and detaching styles, and styles whose sizes follow variables.
Lists#
A text can be an item of a list, marked by a bullet, a number or a box to tick. Under More in the Text section, the list menu offers No list, Bullets, Numbers and Boxes to tick. Numbered items that follow one another count up by themselves, and the marks hang outside the text, so a long item wraps under its own words.
To hold several items in one text, set the list on each paragraph's piece. One text can then hold a heading and a list:
{"nodes": [{"kind": "text", "name": "Steps", "x": 0, "y": 140, "width": 240, "font_family": "Inter", "font_size": 15, "line_height": 24, "fill": "#0B0D12",
"text": [{"text": "Rename the project\n", "list": "number"}, {"text": "Invite the team\n", "list": "number"}, {"text": "Connect the repository", "list": "number"}]}]}
A list set on a whole text makes each of its paragraphs an item: "text": "Rename the project\nInvite the team\nConnect the repository", "list": "number" numbers all three (an empty line has no mark). Set the list on pieces, as above, to mix a heading or a plain paragraph with the items. A whole text can also be one item to tick, with "list": "check" and "checked": true.
Truncation#
Text from real data runs long. Cut it, and the last line ends in an ellipsis. Under More, the cut menu offers Not cut, To its height, and 1 line to 5 lines. Below it, Shrink to fit, least lets a text with a fixed box shrink, down to the size you give, before it is cut: useful for labels in other languages.

For an agent: "text_truncate": true with "max_lines": 2, and "text_fit": 12 for the least size.
Type details#
OpenType features change how a font draws: digits of one width for prices and times, a slashed zero for codes, true fractions. Select a text and open Type Details in the Text section. It has switches for Ligatures, Small Capitals, Tabular Figures, Oldstyle Figures, Slashed Zero, Fractions and Stylistic Set 1. A font without a feature ignores it.

The property is font_features, as four-letter tags; a minus turns one off:
{"nodes": [{"kind": "text", "name": "Price", "x": 0, "y": 80, "text": "1,111.10", "font_family": "Inter", "font_size": 22, "font_features": ["tnum", "zero"], "fill": "#0B0D12"}]}Use tabular figures wherever numbers change or stand in columns: timers, prices in a table, the time on a list row. Proportional digits make a ticking counter shake.
Text on a path#
Draw a path with the Pen, select it together with a text that has the same parent, and choose Arrange › Text on Path. The text is set along the path; the path stays, to hide or keep. Type Details then says where along the path the text begins and has Take Off the Path.

An agent gives the text a text_path in the text's own coordinates and a box that holds it. text_align centers it on the path:
{"nodes": [{"kind": "text", "name": "Arch", "x": 0, "y": 340, "width": 320, "height": 140, "text": "Set along an arch", "font_family": "Geist", "font_size": 30, "font_weight": 600, "text_align": "center", "text_path": "M10 130 C90 10 230 10 310 130", "fill": "#0B0D12"}]}Only the first line is set along the path, and letters past its end are left out.