Urgent.News

What's breaking now, across thousands of outlets.

Tech

SkiaSharp 4.0 Establishes Milestone-Aligned Release Cadence

Microsoft and Uno Platform have released the first stable versions in the SkiaSharp 4 series, beginning with SkiaSharp 4.148.0 and followed shortly afterward by 4.150.0. A 4.151.0 prerelease line is also available, demonstrating the project’s new approach of aligning package versions and release cadence with upstream Skia milestones. By Edin Kapić

Microsoft and Uno Platform have introduced SkiaSharp 4.0, a milestone-aligned release series. This update begins with SkiaSharp 4.148.0, followed by 4.150.0 and a 4.151.0 prerelease. SkiaSharp integrates .NET bindings for Google's Skia 2D graphics engine across various platforms, including mobile, desktop, web, and server applications.

The previous version, 3.119, had become outdated compared to upstream Skia. SkiaSharp 4.0 streamlines the engine, eliminates outdated APIs, and adopts a more reliable model where stable and preview packages mirror the Skia versions utilized by Chrome's release channels. The first stable release, 4.148.0, upgraded the bundled engine to Skia m148 and introduced functionalities like control over OpenType variable-font axes, color-font palette selection, animated WebP encoding through SKWebpEncoder, and zero-copy stream and text-shaping APIs.

Microsoft reported performance enhancements, including a 24% improvement in initial OpenGL tests for GPU-rendered interfaces with shadowed and layered surfaces, and a sixfold acceleration in CPU-based Perlin-noise shaders. SkiaSharp 4.150.0, released on July 7, updated the engine to Skia m150, adding graphics diagnostics and filtering APIs, such as SKPaint.GetFastBounds() for visibility culling and SKImageFilter.CreateCrop() for cropping tasks.

The 4.151.0 release, focusing primarily on managed-code performance, introduced managed integer operations for color conversion, premultiplication, and tag parsing, alongside zero-copy spans for HarfBuzz UTF-8 encoding and SKShaper glyph results. Additionally, it supports allocation-free ReadOnlySpan overloads for hexadecimal color parsing and incorporates Emscripten 5.0.6 libraries for .NET 11 WebAssembly's exnref exception-handling model.

Notably, SkiaSharp 4.0 represents a breaking upgrade from version 3, requiring developers to replace obsolete SKPaint text and font members with SKFont, which measures and renders text only after explicit assignment of a typeface.

Written by urgent.news from InfoQ's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at infoq.com →

More in Tech

More from Wednesday 5 August →