HarfBuzzSharp 14.2.1.500-preview.1.26471.14

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.
53
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
HarfBuzzSharp.NativeAssets.Linux
HarfBuzzSharp is a cross-platform OpenType text shaping engine for .NET platforms.
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.
45
HarfBuzzSharp.NativeAssets.Linux
HarfBuzzSharp is a cross-platform OpenType text shaping engine for .NET platforms.
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
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.
44
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.
44
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.
43
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.
43
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.
42
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.
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.
42
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
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

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