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 8991ac8 4 files · 30.9 KB Updated

File contents

yaniv-golan/skill-packager-skill/tree/main/skill-packager-workspace/iteration-1/eval-3-multi-skill/without_skill/outputs/skills/pretext commit 8991ac8306

Frequently asked questions

npx skillmds@latest add yaniv-golan/pretext