HarfBuzzSharp 15.0.0-preview.2.26560.5

HarfBuzzSharp

NuGet NuGet downloads License: MIT

HarfBuzzSharp provides .NET bindings for the HarfBuzz OpenType text shaping engine. It converts Unicode text into correctly selected and positioned glyphs for complex scripts, ligatures, kerning, variable fonts, bidirectional text, and advanced typographic features.

Capabilities

  • Shape text for Arabic, Indic, Southeast Asian, and other complex writing systems.
  • Apply OpenType features, language, script, and direction settings.
  • Inspect glyph IDs, clusters, advances, and offsets.
  • Read OpenType variation axes, names, metrics, color glyph data, and layout information.
  • Run on Windows, macOS, Linux, Android, iOS, Mac Catalyst, tvOS, Tizen, and WebAssembly.
  • Integrate with SkiaSharp rendering through SkiaSharp.HarfBuzz.

Get started

Install the package:

dotnet add package HarfBuzzSharp

Shape a string using an OpenType font:

using HarfBuzzSharp;

using var blob = Blob.FromFile("NotoSansArabic-Regular.ttf");
using var face = new Face(blob, 0);
using var font = new Font(face);
font.SetScale(face.UnitsPerEm, face.UnitsPerEm);

using var buffer = new HarfBuzzSharp.Buffer();
buffer.AddUtf8("مرحبا بالعالم");
buffer.GuessSegmentProperties();

font.Shape(buffer);

foreach (var glyph in buffer.GlyphInfos)
    Console.WriteLine($"Glyph {glyph.Codepoint}, cluster {glyph.Cluster}");

For drawing shaped text with SkiaSharp, install SkiaSharp.HarfBuzz and use SKShaper:

dotnet add package SkiaSharp.HarfBuzz

Linux and WebAssembly: add the matching HarfBuzzSharp.NativeAssets.* package directly to the application project when the target does not receive native assets transitively. See the package deployment guide.

Documentation and resources

Feedback and contributing

HarfBuzzSharp is part of the open-source SkiaSharp project from Microsoft. Use GitHub Discussions for questions, file bugs and feature requests in the issue tracker, and read the contributing guide to get involved.

HarfBuzzSharp is released under the MIT license.

Showing the top 20 packages that depend on HarfBuzzSharp.

Packages Downloads
Avalonia.Direct2D1
Avalonia is a cross-platform UI framework for .NET providing a flexible styling system and supporting a wide range of Operating Systems such as Windows, Linux, macOS and with experimental support for Android, iOS and WebAssembly.
72
Avalonia.Skia
Avalonia is a cross-platform UI framework for .NET providing a flexible styling system and supporting a wide range of Operating Systems such as Windows, Linux, macOS and with experimental support for Android, iOS and WebAssembly.
42
Avalonia.Direct2D1
Avalonia is a cross-platform UI framework for .NET providing a flexible styling system and supporting a wide range of Operating Systems such as Windows, Linux, macOS and with experimental support for Android, iOS and WebAssembly.
41
Avalonia.Skia
Avalonia is a WPF/UWP-inspired cross-platform XAML-based UI framework providing a flexible styling system and supporting a wide range of Operating Systems such as Windows (.NET Framework, .NET Core), Linux (via Xorg), MacOS and with experimental support for Android and iOS.
41
Avalonia.Skia
Avalonia is a cross-platform UI framework for .NET providing a flexible styling system and supporting a wide range of Operating Systems such as Windows, Linux, macOS and with experimental support for Android, iOS and WebAssembly.
41
HarfBuzzSharp.NativeAssets.Linux
HarfBuzzSharp is a cross-platform OpenType text shaping engine for .NET platforms.
41
Avalonia.Direct2D1
Avalonia is a cross-platform UI framework for .NET providing a flexible styling system and supporting a wide range of Operating Systems such as Windows, Linux, macOS and with experimental support for Android, iOS and WebAssembly.
40
Avalonia.Skia
Avalonia is a cross-platform UI framework for .NET providing a flexible styling system and supporting a wide range of Operating Systems such as Windows, Linux, macOS and with experimental support for Android, iOS and WebAssembly.
40
HarfBuzzSharp.NativeAssets.Linux
HarfBuzzSharp is a cross-platform OpenType text shaping engine for .NET platforms.
40
Avalonia.Direct2D1
Avalonia is a cross-platform UI framework for .NET providing a flexible styling system and supporting a wide range of Operating Systems such as Windows, Linux, macOS and with experimental support for Android, iOS and WebAssembly.
39
Avalonia.Skia
Avalonia is a cross-platform UI framework for .NET providing a flexible styling system and supporting a wide range of Operating Systems such as Windows, Linux, macOS and with experimental support for Android, iOS and WebAssembly.
39
Avalonia.Skia
Avalonia is a WPF/UWP-inspired cross-platform XAML-based UI framework providing a flexible styling system and supporting a wide range of Operating Systems such as Windows (.NET Framework, .NET Core), Linux (via Xorg), MacOS and with experimental support for Android and iOS.
39
HarfBuzzSharp.NativeAssets.Linux
HarfBuzzSharp is a cross-platform OpenType text shaping engine for .NET platforms.
39
Avalonia.Skia
Avalonia is a cross-platform UI framework for .NET providing a flexible styling system and supporting a wide range of Operating Systems such as Windows, Linux, macOS and with experimental support for Android, iOS and WebAssembly.
38

Please visit https://go.microsoft.com/fwlink/?linkid=868517 to view the release notes.

.NET 10.0

.NET Standard 2.1

.NET Standard 2.0

.NET 9.0

.NET 9.0

.NET 9.0

.NET 9.0

.NET 9.0

.NET 9.0

.NET 9.0

.NET 6.0

.NET Framework 4.8

.NET 10.0

.NET 10.0

.NET 10.0

.NET 10.0

.NET 10.0

.NET 10.0

.NET Framework 4.6.2

.NET 10.0

Version Downloads Last updated
15.0.0.100-rc.1.26567.13 2 11/18/2026
15.0.0.100-preview.1.26563.22 2 11/14/2026
15.0.0-rc.1.26567.14 3 11/18/2026
15.0.0-preview.3.26563.17 3 11/14/2026
15.0.0-preview.2.26560.5 3 11/12/2026
14.4.0.300-preview.1.26556.2 3 11/07/2026
14.4.0.200 2 11/18/2026
14.4.0.200-rc.2.26563.19 1 11/17/2026
14.4.0.200-rc.1.26560.6 4 11/12/2026
14.4.0.200-preview.1.26556.1 3 11/07/2026
14.4.0.102 2 11/19/2026
14.4.0.101 2 11/14/2026
14.4.0.100 3 11/12/2026
14.4.0.100-rc.1.26553.11 6 11/12/2026
14.4.0.100-preview.1.26512.10 6 10/17/2026
14.4.0.2 2 11/18/2026
14.4.0.1 1 11/21/2026
14.4.0 4 11/06/2026
14.4.0-rc.1.26512.8 6 10/17/2026
14.4.0-preview.2.26479.13 7 09/30/2026
14.2.1.500-preview.1.26471.14 7 09/30/2026
14.2.1.401 4 11/06/2026
14.2.1.400 4 10/30/2026
14.2.1.400-rc.1.26479.14 7 09/30/2026
14.2.1.400-preview.2.26471.11 8 09/30/2026
14.2.1.400-preview.1.26454.9 9 09/06/2026
14.2.1.303 3 11/06/2026
14.2.1.302 7 10/30/2026
14.2.1.301 7 09/30/2026
14.2.1.300 7 09/30/2026
14.2.1.300-rc.1.26456.2 9 09/18/2026
14.2.1.300-preview.1.26454.6 9 09/06/2026
14.2.1.205 3 11/06/2026
14.2.1.204 4 10/30/2026
14.2.1.203 11 09/30/2026
14.2.1.202 7 09/30/2026
14.2.1.201 10 09/18/2026
14.2.1.200 12 09/09/2026
14.2.1.200-rc.1.26426.14 13 08/29/2026
14.2.1.106 3 11/06/2026
14.2.1.105 6 09/30/2026
14.2.1.104 7 09/30/2026
14.2.1.103 8 09/23/2026
14.2.1.102 9 09/06/2026
14.2.1.7 5 11/01/2026
14.2.1.6 3 11/06/2026
14.2.1.5 7 09/30/2026
14.2.1.4 7 09/30/2026
14.2.1.3 12 09/06/2026
14.2.1.2 12 08/10/2026
14.2.1.1 12 07/16/2026
14.2.1 14 07/09/2026
14.2.1-rc.1.1 13 07/02/2026
14.2.1-preview.2.1 11 06/27/2026
14.2.1-preview.1.1 13 07/03/2026
14.2.0 15 06/27/2026
14.2.0-rc.1.2 15 06/19/2026
14.2.0-preview.1.1 14 06/19/2026
8.3.1.6-preview.3.1 11 05/26/2026
8.3.1.6-preview.2.1 18 05/16/2026
8.3.1.6-preview.1.1 15 05/02/2026
8.3.1.5 17 05/26/2026
8.3.1.5-preview.1.1 15 04/24/2026
8.3.1.4-preview.1.1 14 02/19/2026
8.3.1.3 18 02/08/2026
8.3.1.3-preview.3.1 16 02/06/2026
8.3.1.3-preview.2.3 17 02/01/2026
8.3.1.3-preview.1 24 10/26/2025
8.3.1.2 28 10/26/2025
8.3.1.2-preview.1 25 09/10/2025
8.3.1.1 93 05/22/2025
8.3.1.1-stable.1 27 05/22/2025
8.3.1.1-preview.1.2 28 05/22/2025
8.3.1-preview.2.3 30 02/19/2025
8.3.1-preview.1.2 31 02/19/2025
8.3.0.1 34 02/19/2025
8.3.0 35 02/19/2025
8.3.0-preview.6.1 29 02/19/2025
8.3.0-preview.5.4 29 02/19/2025
8.3.0-preview.4.1 34 02/19/2025
8.3.0-preview.3.1 29 02/19/2025
8.3.0-preview.2.1 30 02/19/2025
8.3.0-preview.1.8 29 02/19/2025
8.3.0-preview.0.132 33 02/19/2025
7.3.0.3 34 02/19/2025
7.3.0.3-preview.2.2 32 02/19/2025
7.3.0.3-preview.1.1 30 02/19/2025
7.3.0.2 31 02/19/2025
7.3.0.2-preview.1.1 30 02/19/2025
7.3.0.1 33 02/19/2025
7.3.0 38 02/19/2025
7.3.0-preview.1.2 30 02/19/2025
2.8.2.5 33 02/19/2025
2.8.2.4 33 02/19/2025
2.8.2.4-preview.96 34 02/19/2025
2.8.2.4-preview.95 31 02/19/2025
2.8.2.4-preview.89 35 02/19/2025
2.8.2.4-preview.84 30 02/19/2025
2.8.2.4-preview.82 30 02/19/2025
2.8.2.4-preview.76 30 02/19/2025
2.8.2.4-preview.70 32 02/19/2025
2.8.2.3 35 02/19/2025
2.8.2.2 33 02/19/2025
2.8.2.2-preview.8 30 02/19/2025
2.8.2.1 33 02/19/2025
2.8.2.1-preview.108 31 02/19/2025
2.8.2.1-preview.104 30 02/19/2025
2.8.2.1-preview.91 30 02/19/2025
2.8.2.1-preview.79 31 02/19/2025
2.8.2.1-preview.75 32 02/19/2025
2.8.2.1-preview.71 30 02/19/2025
2.8.2.1-preview.63 29 02/19/2025
2.8.2.1-preview.1 30 02/19/2025
2.8.2 38 02/19/2025
2.8.2-preview.266 30 02/19/2025
2.8.2-preview.256 34 02/19/2025
2.8.2-preview.254 30 02/19/2025
2.8.2-preview.232 30 02/19/2025
2.8.2-preview.209 34 02/19/2025
2.8.2-preview.187 30 02/19/2025
2.8.2-preview.179 30 02/19/2025
2.8.2-preview.178 32 02/19/2025
2.8.2-preview.155 30 02/19/2025
2.8.2-preview.152 31 02/19/2025
2.8.2-preview.150 34 02/19/2025
2.8.2-preview.145 36 02/19/2025
2.8.2-preview.140 30 02/19/2025
2.8.2-preview.139 32 02/19/2025
2.8.2-preview.127 37 02/19/2025
2.6.1.9 33 02/19/2025
2.6.1.9-preview.120 32 02/19/2025
2.6.1.9-preview.9 32 02/19/2025
2.6.1.9-preview.6 34 02/19/2025
2.6.1.9-preview.5 35 02/19/2025
2.6.1.9-preview.2 32 02/19/2025
2.6.1.8 36 02/19/2025
2.6.1.8-preview.93 32 02/19/2025
2.6.1.8-preview.90 34 02/19/2025
2.6.1.8-preview.61 29 02/19/2025
2.6.1.7 33 02/19/2025
2.6.1.7-preview.40 38 02/19/2025
2.6.1.7-preview.36 37 02/19/2025
2.6.1.7-preview.33 32 02/19/2025
2.6.1.7-preview.24 37 02/19/2025
2.6.1.7-preview.18 32 02/19/2025
2.6.1.6 31 02/19/2025
2.6.1.6-preview.19 31 02/19/2025
2.6.1.6-preview.18 30 02/19/2025
2.6.1.6-preview.9 32 02/19/2025
2.6.1.5 34 02/19/2025
2.6.1.5-preview.33 30 02/19/2025
2.6.1.5-preview.24 32 02/19/2025
2.6.1.5-preview.14 38 02/19/2025
2.6.1.5-preview.12 39 02/19/2025
2.6.1.5-preview.3 31 02/19/2025
2.6.1.4 30 02/19/2025
2.6.1.4-preview.2 32 02/19/2025
2.6.1.3 37 02/19/2025
2.6.1.2 35 02/19/2025
2.6.1.1 34 02/19/2025
2.6.1.1-preview.60 35 02/19/2025
2.6.1.1-preview.50 36 02/19/2025
2.6.1.1-preview.45 33 02/19/2025
2.6.1.1-preview.43 29 02/19/2025
2.6.1.1-preview.39 36 02/19/2025
2.6.1.1-preview.29 34 02/19/2025
2.6.1.1-preview.21 31 02/19/2025
2.6.1.1-preview.17 36 02/19/2025
2.6.1.1-preview.9 30 02/19/2025
2.6.1 38 02/19/2025
2.6.1-rc.172 32 02/19/2025
2.6.1-rc.170 36 02/19/2025
2.6.1-rc.169 38 02/19/2025
2.6.1-rc.165 29 02/19/2025
2.6.1-rc.153 35 02/19/2025
2.5.3-rc.147 32 02/19/2025
1.4.6.2 33 02/19/2025
1.4.6.2-preview28 30 02/19/2025
1.4.6.1 33 02/19/2025
1.4.6 38 02/19/2025
1.4.5 39 02/19/2025