HarfBuzzSharp 14.2.1.302

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.
55
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.
51
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.
50
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.
48
HarfBuzzSharp.NativeAssets.Linux
HarfBuzzSharp is a cross-platform OpenType text shaping engine for .NET platforms.
48
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.
47
Avalonia.HarfBuzz
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.
47
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.
47
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.
47
HarfBuzzSharp.NativeAssets.Linux
HarfBuzzSharp is a cross-platform OpenType text shaping engine for .NET platforms.
47
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.
46
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.
46
Avalonia.HarfBuzz
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.
46
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.
45
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.
45

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

.NET 10.0

.NET 10.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 6.0

.NET 6.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 Standard 2.0

.NET Standard 2.1

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