@napi-rs/canvas v1.1.0

v1.1.0
Added 2
Changed 1
  • Text now defaults to the portable renderer, using FreeType on macOS, Linux, and Windows so rendering and measureText results are consistent across operating systems when the same fonts are registered
Fixed 9
  • Full-sweep arc() and ellipse() now draw correctly for every start angle
  • A degenerate ellipse() is drawn as straight lines like Chrome
  • Addon's own symbols are bound on Linux so Electron's cxx runtime cannot replace them
  • Windows Skia is compiled with -ffp-contract=off like Chromium
  • Skia-c is compiled with -ffp-contract=off like Chromium
  • rotate() path, arc() with equal start and end angles, rotated ellipse, isPointInStroke state, and one-point stroke pruning were corrected

1 change to check, marked in the notes below

From @napi-rs/canvas

Highlights
Portable text rendering by default (#1404)

Text now defaults to the portable renderer, using FreeType on macOS, Linux, and Windows to make rendering and measureText results consistent across operating systems when the same fonts are registered.

Behavior change: default text output, measurements, and system-font resolution can differ from v1.0.12/v1.0.13. To restore the previous Chrome-like, platform-specific behavior, call: behavior changed · inferred

const { setTextRenderer } = require('@napi-rs/canvas')

setTextRenderer('system')

Use getTextRenderer() to inspect the active mode. Installed fonts and fallback for characters missing from registered fonts can still vary by OS and machine.

What's Changed

Full Changelog: https://github.com/Brooooooklyn/canvas/compare/v1.0.13...v1.1.0

View original

Upgraded? How did it go?

Discussion