openpencil/packages/core
Danila Poyarkov e23b3f0ce1 feat(layout): use opentype.js for accurate headless text measurement
estimateTextSize() now tries opentype.js per-glyph advance widths
before falling back to the rough 0.6 × fontSize × charCount heuristic.
Since font data is already cached via loadFont(), this gives accurate
variable-width measurement for any loaded font — no CanvasKit needed.

Parsed opentype.js Font objects are cached per family+style to avoid
reparsing on every layout pass.
2026-04-22 14:11:36 +03:00
..
assets Refactor font loading: DRY up local font lookup, fix headless fallback 2026-03-16 13:38:16 +03:00
src feat(layout): use opentype.js for accurate headless text measurement 2026-04-22 14:11:36 +03:00
package.json fix(layout): bump yoga-layout to 3.3.0-grid.3 with Node.free() support 2026-04-13 12:09:45 +03:00
tsconfig.json Fix core release build config 2026-03-30 18:54:18 +03:00
tsdown.config.ts Release v0.11.6 2026-04-08 22:04:22 +03:00