HarfBuzzSharp 14.2.1.300-rc.1.26456.2

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.
68
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.
38
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
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.
37
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.
37
HarfBuzzSharp.NativeAssets.Linux
HarfBuzzSharp is a cross-platform OpenType text shaping engine for .NET platforms.
37
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.
36
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.
36
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.
36
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.
35
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.
35
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.
35

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 9.0

.NET 6.0

.NET 6.0

.NET 10.0

.NET 10.0

.NET 10.0

.NET 10.0

.NET 10.0

.NET 10.0

.NET Framework 4.6.2

.NET Framework 4.8

.NET 10.0

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