@napi-rs/canvas
1.2.0 · 21 Nov 2026MIT56.8M / weekRepositoryHomepagenpmAtom feed
Upgrading @napi-rs/canvas From 1.1.0 to 1.2.0
2 releases in betweenevery note read
Release by release
- New
Supports CSS values, ranges (
'100 900','oblique 10deg 20deg','75% 125%'),calc(), and'auto'. Invalid descriptors returnnullwithout registering; non-object descriptors throw aTypeError. - New
Variable fonts clamp
wght/slnt/wdthto declared descriptor ranges, use theitalaxis foritalicwhen available, and apply variation coordinates in SVG<text>. - New
Static (non-variable)
font-stretchmatching now follows CSS Fonts Level 4 (Width > Style > Weightpriority and exact matches for expanded widths).
- New
- New
text: Add fontFeatureSettings, fontVariantLigatures/Numeric/Position, fontSizeAdjust and fontOpticalSizing
- New
text: Add the Blink shaper scaffold behind NAPI_RS_CANVAS_SHAPER
- New
text: Shape canvas text with the Blink-style shaper core
- New
text: Add Blink fallback stages and the macOS system fallback to the shaper
- New
9 internal lines (docs, tests, tooling) left out.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.