Table of Contents

Version 1.57.1

HarfBuzz text shaping & Xamarin.Mac support · Released May 5, 2017 · NuGet · GitHub Release

Highlights

This release introduces HarfBuzzSharp — initial bindings for the HarfBuzz text shaping engine — along with SKShaper and DrawShapedText for easy shaped text rendering. Xamarin.Forms gains preview Xamarin.Mac support and reworked renderers, while several text rendering and packaging bugs are fixed.

Breaking Changes

None in this release.

New Features

Text

  • HarfBuzzSharp initial bindings — New preview package exposing HarfBuzz text shaping with bindings for Blob, Buffer, Face, and Font.
  • SKShaper for text shaping — New type that shapes a string and returns codepoints with their positions.
  • DrawShapedText extension method — Extension method on SKCanvas for drawing shaped text easily.
  • ToHarfBuzzBlob extension — Extension method on SKStreamAsset to convert seekable streams to HarfBuzz blobs.

API Surface

  • SKTypeface font data streamSKTypeface now supports opening a stream to the underlying font data.

Platform

  • Xamarin.Mac support (preview) — Initial Xamarin.Mac support in SkiaSharp.Views.Forms.
  • Reworked Xamarin.Forms renderers — Renderers have been reworked making extension and customization far easier.
  • Designer detection improvements — SkiaSharp.Views now detects the designer correctly when native assets aren't available.

Bug Fixes

  • Fixed non-antialiased text on a scaled canvas on Windows.
  • Fixed an issue with publishing a .NET Core app to Windows 10.
  • The Xamarin.Forms Previewer no longer crashes when adding SkiaSharp views.
  • Fixed renderers adding multiple native views when in a list view item.
  • NuGet now requires NuGet v3.5+ for UWP apps.
  • Improvements for Xamarin Workbooks and macOS packaging.

Platform Support

Platform What's New
🪟 Windows Text rendering fix on scaled canvas; .NET Core publishing fix
🍎 Apple Preview Xamarin.Mac support; macOS packaging improvements
🎨 Core HarfBuzz text shaping; SKTypeface font data stream