Packages

@napi-rs/canvas

1.2.0 · 21 Nov 2026MIT56.8M / weekRepositoryHomepagenpmAtom feed

Your version

1.1.1

12 Nov 2026Where it was published

1.2.0 is the newest release of 1.x.

Summary· from the note as AI read it

Migration neededRead before upgrading: 2 changes to make.

Before you upgrade

  • Blink shaper is now default; check text rendering output
  • Old skparagraph text path is gone; verify text rendering output

New

  • feat(text): add fontFeatureSettings, fontVariantLigatures/Numeric/Position, fontSizeAdjust and fontOpticalSizing
  • feat(text): add the Blink shaper scaffold behind NAPI_RS_CANVAS_SHAPER
  • feat(text): shape canvas text with the Blink-style shaper core
  • feat(text): add Blink fallback stages and the macOS system fallback to the shaper
  • feat(text): add letter and word spacing to the Blink-style shaper

In short

1 breaking1 removed10 new1 faster14 fixed8 internal

  • Breaking

    feat(text): make the Blink shaper the default text path

  • Removed

    refactor(text): remove the old skparagraph text path

Release note

What's Changed

  • canvas: Keep the canvas usable while an async encode is pending

  • image: Draw a complete Buffer image before onload like Chrome

  • text: Let the font decide Turkish ligatures like Chrome

  • text: Add fontFeatureSettings, fontVariantLigatures/Numeric/Position, fontSizeAdjust and fontOpticalSizing

  • text: Floor every font size to 1/100 px like Chrome

  • text: Add the Blink shaper scaffold behind NAPI_RS_CANVAS_SHAPER

  • text: Shape canvas text with the Blink-style shaper core

  • text: Add Blink fallback stages and the macOS system fallback to the shaper

  • text: Add letter and word spacing to the Blink-style shaper

  • text: Add font-variant-caps to the Blink-style shaper

  • text: Add per-face size, opsz and ptem to the Blink-style shaper

  • text: Add chws and HanKerning to the Blink-style shaper

  • text: Add host language and per-script fonts to the Blink-style shaper

  • text: Cache the system-face check of the Blink shaper

  • text: Draw .notdef where the Blink shaper has no fallback source

  • text: Make the Blink shaper the default text path

  • text: A lang change re-sets the font like Blink

  • fonts: Free removed fonts (RSS stays flat)

  • text: Word spacing on a leading space follows desktop Chrome

  • fonts: A name registered over an installed family works like a FontFace

  • text: Resolve letterSpacing and wordSpacing units like Chrome

  • fonts: Spellings of a family are one family, and the face added last wins

  • fonts: A name given to a file loadFontsFromDir loaded is its own FontFace

  • text: Take characters the font list lacks from installed fonts

  • svg: SVG text falls back per character through the font list, as Chrome does

  • svg: Synthetic bold and italic in SVG text

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.