Pretext

Help developers use @chenglou/pretext, the 15KB TypeScript text measurement library that computes exact text metrics without DOM reflows. Use when user mentions pretext, @chenglou/pretext, text measurement, text layout without DOM, text reflow, text around obstacles, auto-fit font size, layoutNextLine, or asks to measure text height/width in JavaScript without triggering browser reflow. Covers API usage, integration patterns, creative demos (ASCII art, obstacle-aware flow, masonry), and critical gotchas. Do NOT use for CSS-only text layout questions or general typography.

yaniv-golan 9fe63d4 4 files · 30.9 KB Updated

File contents

yaniv-golan/skill-packager-skill/tree/main/skill-packager-workspace/iteration-1/eval-3-multi-skill/with_skill/outputs/media-tools/skills/pretext commit 9fe63d4dc9

Frequently asked questions

npx skillmds@latest add yaniv-golan/pretext-2