summaryrefslogtreecommitdiff
path: root/docs/design.typ
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-09-24 13:01:25 -0300
committerGabriel Schneider <[email protected]>2026-10-01 00:12:14 -0300
commitd395739c8051e28726a4111eec1111a9c70567ec (patch)
tree1e2ecebb1fa5cfc45009b286d1480a1779fc3898 /docs/design.typ
parent19a93afb5958b6a6548e1112813d4aa687a8976f (diff)
downloadpardes-d395739c8051e28726a4111eec1111a9c70567ec.tar.gz
pardes-d395739c8051e28726a4111eec1111a9c70567ec.zip
Turn ligatures off with a Ligatures setting, in the shell that shapes text
The SDL shell shapes words with HarfBuzz, so a font's `->` and `!=` draw as ligatures, and there was no way to have the plain glyphs back short of changing font. `Ligatures` is a toggle, on by default; off, no cell goes to the shaper and every cell draws its own glyph, exactly as a font without ligatures does. It exists only where it means something. A new `ligatures` capability, true for the gui shell alone, gates it like Font and WindowOpacity are gated: it is not a builtin elsewhere, has no leader path, and Config does not list it, rather than print a row the TTY could never change. macOS draws CoreText ligatures of its own, but nothing there reads the setting, so it stays off there. The table check that kept every toggle unconditional now lets the ligatures toggle, and only it, carry a capability, and requires that it carry `ligatures`; every other setting's rule is as it was. The gui keeps the setting beside its text caches, which were resolved under it: when the core's value changes, the per-codepoint cells (which record whether a cell is shaped) and the shaped words are dropped, and the frame the toggle asked for draws every cell again. The atlas keeps its glyphs: plain ones draw either way, and a ligature's strip is reused when it comes back. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Diffstat (limited to 'docs/design.typ')
-rw-r--r--docs/design.typ3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/design.typ b/docs/design.typ
index 8ec025f1..01b850b9 100644
--- a/docs/design.typ
+++ b/docs/design.typ
@@ -2043,7 +2043,8 @@ a tagline or a one-cell-tolerant pane separator latches to a left-mouse gesture
for its lifetime, keeping layout drags out of the scroll heuristic. Touch
input translation and scroll/tap state live entirely in the JavaScript shell.
The native SDL shell uses a FreeType light-hinted grayscale atlas over the SDL GPU API (SPIR-V),
-with words shaped by HarfBuzz so a font's ligatures span their cells.
+with words shaped by HarfBuzz so a font's ligatures span their cells
+(`Ligatures off` draws every cell as its own glyph).
The browser exposes each cell as selectable, inspectable text and applies the
surface styles with CSS. The browser `.snap` harness drives real Chromium touch
input and reads both text and per-cell styles from the DOM renderer's packed