What problem does it solve? Measuring multiline text layout in the browser normally requires DOM reads like getBoundingClientRect, which cause reflow thrash and make real-time text effects impractical. This Skill uses the @chenglou/pretext library to compute line breaks, per-line widths, and per-grapheme positions purely via canvas measurement, enabling 60fps creative text demos. ## Core Features & Use Cases - Variable-width text reflow: Flow paragraphs around moving obstacles, sprites, or ASCII-art shapes using layoutNextLineRange with per-row width functions. - Text-as-geometry games and kinetic typography: Build Breakout-style word bricks, shatter-into-particles effects, and animated editorial layouts from measured line and grapheme positions. - Multiline shrink-wrap and measurement: Compute exact container heights and tightest-fitting widths without touching the DOM, for virtualized lists and masonry layouts. - Use Case: A user asks for a hero section where a paragraph parts around a draggable glowing orb. The Skill starts from the hello-orb-flow.html template, swaps in real prose, tunes the palette and font, and delivers a single self-contained HTML file. ## Quick Start Ask the agent to build a pretext demo where text flows around a draggable shape, and it will generate a self-contained HTML file you can open with python -m http.server.