Text and Shaping
Type with the font you are drawing. Shaping, kerning and bidirectional text all work while you edit.
| Status | Implemented |
|---|---|
| Stability | Stable |
Typing
Press the text tool and type. The glyphs of the open font lay out as a line of real text, shaped with the font’s own feature code and kerned. Click a glyph in that line to edit it in place, with its neighbours around it.
Edits show up in the line as you make them. The glyph you are editing uses its own live advance width, so spacing changes are visible in context immediately rather than after a reload.
View → Next Sample String rebuilds the buffer as sample text around the glyph you have open.
The Caret
| Left, Right | Move visually, not by storage order. Left means left on screen, whichever direction the run runs. |
|---|---|
| Up, Down | Move a line. |
| Home, End | The visual edges of the line. |
| Backspace, Delete | Delete, re-shaping Arabic around the caret. |
| Enter | Line break. |
Arabic re-shapes as you type and as you delete, so joining forms stay correct while the text changes under them.
The Shaping Section
The Shaping section of the right panel controls how the text is shaped.
| Preview text | The text to shape. |
|---|---|
| LTR, RTL, Auto | The text direction. Auto takes it from the characters. |
| Feature chips | liga, rlig, kern, mark and mkmk. Click a chip to turn that feature off or on. |
| Auto, Arabic, Urdu | The script and language. Auto lets the shaper infer them from the characters. Urdu shapes as Arabic script with the Urdu language, so you can check that a locl rule for Urdu fires. |
Connected Scripts
Cursive scripts need the joining forms of each letter: initial, medial, final, and isolated. Shaping engines find them by glyph name, so a misnamed glyph looks to them like a missing one.
Glyph → Check Joining measures rather than eyeballs. For every positional form it measures the connecting stroke at the joining edges. Initial and medial join at x = 0; medial and final join at the advance. It then finds the font’s common band and selects every form that misses it.
Naming the forms correctly also feeds feature generation: init,
medi, and fina substitutions are written from those names, and
entry and exit anchors become cursive attachment. See
Feature Code.
Kerning in Text
The line of text applies the font’s kerning, so you see each pair at size in a real word. To set a value, use the First, Second and Value fields in the Kerning section of the grid view. See Spacing and Kerning.