HarfBuzzSharp 14.2.1.200-rc.1.26426.14
HarfBuzzSharp
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
- HarfBuzzSharp API reference on Microsoft Learn
- SkiaSharp.HarfBuzz API reference
- HarfBuzz documentation
- SkiaSharp package and deployment guide
- SkiaSharp samples
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.
|
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.
|
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 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.
|
40 |
|
HarfBuzzSharp.NativeAssets.Linux
HarfBuzzSharp is a cross-platform OpenType text shaping engine for .NET platforms.
|
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 |
|
Avalonia.Direct2D1
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 |
|
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.
|
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.
|
38 |
|
Avalonia.Direct2D1
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.
|
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.
|
37 |
Please visit https://go.microsoft.com/fwlink/?linkid=868517 to view the release notes.
.NET Framework 4.6.2
- HarfBuzzSharp.NativeAssets.macOS (>= 14.2.1.200-rc.1.26426.14)
- HarfBuzzSharp.NativeAssets.Win32 (>= 14.2.1.200-rc.1.26426.14)
- System.Memory (>= 4.6.3)
.NET Framework 4.8
- HarfBuzzSharp.NativeAssets.macOS (>= 14.2.1.200-rc.1.26426.14)
- HarfBuzzSharp.NativeAssets.Win32 (>= 14.2.1.200-rc.1.26426.14)
- System.Memory (>= 4.6.3)
.NET 6.0
- HarfBuzzSharp.NativeAssets.macOS (>= 14.2.1.200-rc.1.26426.14)
- HarfBuzzSharp.NativeAssets.Win32 (>= 14.2.1.200-rc.1.26426.14)
.NET 6.0
- HarfBuzzSharp.NativeAssets.Tizen (>= 14.2.1.200-rc.1.26426.14)
.NET 9.0
- HarfBuzzSharp.NativeAssets.macOS (>= 14.2.1.200-rc.1.26426.14)
- HarfBuzzSharp.NativeAssets.Win32 (>= 14.2.1.200-rc.1.26426.14)
.NET 9.0
- HarfBuzzSharp.NativeAssets.Android (>= 14.2.1.200-rc.1.26426.14)
.NET 9.0
- HarfBuzzSharp.NativeAssets.iOS (>= 14.2.1.200-rc.1.26426.14)
.NET 9.0
- HarfBuzzSharp.NativeAssets.MacCatalyst (>= 14.2.1.200-rc.1.26426.14)
.NET 9.0
- HarfBuzzSharp.NativeAssets.macOS (>= 14.2.1.200-rc.1.26426.14)
.NET 9.0
- HarfBuzzSharp.NativeAssets.Tizen (>= 14.2.1.200-rc.1.26426.14)
.NET 9.0
- HarfBuzzSharp.NativeAssets.tvOS (>= 14.2.1.200-rc.1.26426.14)
.NET 9.0
- HarfBuzzSharp.NativeAssets.Win32 (>= 14.2.1.200-rc.1.26426.14)
.NET 10.0
- HarfBuzzSharp.NativeAssets.macOS (>= 14.2.1.200-rc.1.26426.14)
- HarfBuzzSharp.NativeAssets.Win32 (>= 14.2.1.200-rc.1.26426.14)
.NET 10.0
- HarfBuzzSharp.NativeAssets.Android (>= 14.2.1.200-rc.1.26426.14)
.NET 10.0
- HarfBuzzSharp.NativeAssets.iOS (>= 14.2.1.200-rc.1.26426.14)
.NET 10.0
- HarfBuzzSharp.NativeAssets.MacCatalyst (>= 14.2.1.200-rc.1.26426.14)
.NET 10.0
- HarfBuzzSharp.NativeAssets.macOS (>= 14.2.1.200-rc.1.26426.14)
.NET 10.0
- HarfBuzzSharp.NativeAssets.Tizen (>= 14.2.1.200-rc.1.26426.14)
.NET 10.0
- HarfBuzzSharp.NativeAssets.tvOS (>= 14.2.1.200-rc.1.26426.14)
.NET 10.0
- HarfBuzzSharp.NativeAssets.Win32 (>= 14.2.1.200-rc.1.26426.14)
.NET Standard 2.0
- HarfBuzzSharp.NativeAssets.macOS (>= 14.2.1.200-rc.1.26426.14)
- HarfBuzzSharp.NativeAssets.Win32 (>= 14.2.1.200-rc.1.26426.14)
- System.Memory (>= 4.6.3)
.NET Standard 2.1
- HarfBuzzSharp.NativeAssets.macOS (>= 14.2.1.200-rc.1.26426.14)
- HarfBuzzSharp.NativeAssets.Win32 (>= 14.2.1.200-rc.1.26426.14)
- System.Runtime.CompilerServices.Unsafe (>= 6.1.2)
| Version | Downloads | Last updated |
|---|---|---|
| 14.2.1.200-rc.1.26426.14 | 1 | 08/28/2026 |
| 14.2.1.2 | 12 | 08/07/2026 |
| 14.2.1.1 | 13 | 07/15/2026 |
| 14.2.1 | 14 | 07/12/2026 |
| 14.2.1-rc.1.1 | 14 | 06/30/2026 |
| 14.2.1-preview.2.1 | 15 | 06/27/2026 |
| 14.2.1-preview.1.1 | 13 | 07/05/2026 |
| 14.2.0 | 12 | 06/24/2026 |
| 14.2.0-rc.1.2 | 15 | 06/16/2026 |
| 14.2.0-preview.1.1 | 13 | 06/17/2026 |
| 8.3.1.6-preview.3.1 | 14 | 05/28/2026 |
| 8.3.1.6-preview.2.1 | 20 | 05/14/2026 |
| 8.3.1.6-preview.1.1 | 34 | 04/30/2026 |
| 8.3.1.5 | 20 | 05/26/2026 |
| 8.3.1.5-preview.1.1 | 37 | 04/27/2026 |
| 8.3.1.4-preview.1.1 | 47 | 02/12/2026 |
| 8.3.1.3 | 41 | 02/08/2026 |
| 8.3.1.3-preview.3.1 | 43 | 02/07/2026 |
| 8.3.1.3-preview.2.3 | 51 | 01/27/2026 |
| 8.3.1.3-preview.1 | 45 | 12/13/2025 |
| 8.3.1.2 | 38 | 12/14/2025 |
| 8.3.1.2-preview.1 | 41 | 12/14/2025 |
| 8.3.1.1 | 48 | 12/14/2025 |
| 8.3.1.1-stable.1 | 39 | 12/14/2025 |
| 8.3.1.1-preview.1.2 | 42 | 12/13/2025 |
| 8.3.1-preview.2.3 | 42 | 12/12/2025 |
| 8.3.1-preview.1.2 | 37 | 12/14/2025 |
| 8.3.0.1 | 45 | 12/17/2025 |
| 8.3.0 | 42 | 12/14/2025 |
| 8.3.0-preview.6.1 | 34 | 12/14/2025 |
| 8.3.0-preview.5.4 | 44 | 12/13/2025 |
| 8.3.0-preview.4.1 | 41 | 12/13/2025 |
| 8.3.0-preview.3.1 | 38 | 12/14/2025 |
| 8.3.0-preview.2.1 | 42 | 12/14/2025 |
| 8.3.0-preview.1.8 | 46 | 12/14/2025 |
| 8.3.0-preview.0.132 | 39 | 12/14/2025 |
| 7.3.0.3 | 45 | 12/14/2025 |
| 7.3.0.3-preview.2.2 | 41 | 12/14/2025 |
| 7.3.0.3-preview.1.1 | 37 | 12/14/2025 |
| 7.3.0.2 | 43 | 12/14/2025 |
| 7.3.0.2-preview.1.1 | 43 | 12/14/2025 |
| 7.3.0.1 | 41 | 12/13/2025 |
| 7.3.0 | 46 | 12/14/2025 |
| 7.3.0-preview.1.2 | 46 | 12/14/2025 |
| 2.8.2.5 | 35 | 12/14/2025 |
| 2.8.2.4 | 41 | 12/10/2025 |
| 2.8.2.4-preview.96 | 43 | 12/14/2025 |
| 2.8.2.4-preview.95 | 41 | 12/14/2025 |
| 2.8.2.4-preview.89 | 42 | 12/13/2025 |
| 2.8.2.4-preview.84 | 37 | 12/14/2025 |
| 2.8.2.4-preview.82 | 38 | 12/14/2025 |
| 2.8.2.4-preview.76 | 40 | 12/14/2025 |
| 2.8.2.4-preview.70 | 38 | 12/14/2025 |
| 2.8.2.3 | 47 | 12/14/2025 |
| 2.8.2.2 | 41 | 12/14/2025 |
| 2.8.2.2-preview.8 | 43 | 12/14/2025 |
| 2.8.2.1 | 45 | 12/14/2025 |
| 2.8.2.1-preview.108 | 33 | 12/14/2025 |
| 2.8.2.1-preview.104 | 37 | 12/14/2025 |
| 2.8.2.1-preview.91 | 47 | 12/14/2025 |
| 2.8.2.1-preview.79 | 48 | 12/14/2025 |
| 2.8.2.1-preview.75 | 43 | 12/14/2025 |
| 2.8.2.1-preview.71 | 44 | 12/14/2025 |
| 2.8.2.1-preview.63 | 40 | 12/14/2025 |
| 2.8.2.1-preview.1 | 34 | 12/14/2025 |
| 2.8.2 | 39 | 12/14/2025 |
| 2.8.2-preview.266 | 46 | 12/14/2025 |
| 2.8.2-preview.256 | 36 | 12/14/2025 |
| 2.8.2-preview.254 | 35 | 12/14/2025 |
| 2.8.2-preview.232 | 33 | 12/14/2025 |
| 2.8.2-preview.209 | 39 | 12/14/2025 |
| 2.8.2-preview.187 | 48 | 12/14/2025 |
| 2.8.2-preview.179 | 44 | 12/14/2025 |
| 2.8.2-preview.178 | 43 | 12/14/2025 |
| 2.8.2-preview.155 | 40 | 12/14/2025 |
| 2.8.2-preview.152 | 57 | 12/14/2025 |
| 2.8.2-preview.150 | 41 | 12/14/2025 |
| 2.8.2-preview.145 | 38 | 12/13/2025 |
| 2.8.2-preview.140 | 50 | 12/14/2025 |
| 2.8.2-preview.139 | 55 | 12/14/2025 |
| 2.8.2-preview.127 | 59 | 12/14/2025 |
| 2.6.1.9 | 55 | 12/14/2025 |
| 2.6.1.9-preview.120 | 45 | 12/14/2025 |
| 2.6.1.9-preview.9 | 42 | 12/20/2025 |
| 2.6.1.9-preview.6 | 41 | 12/14/2025 |
| 2.6.1.9-preview.5 | 42 | 12/20/2025 |
| 2.6.1.9-preview.2 | 48 | 12/20/2025 |
| 2.6.1.8 | 42 | 12/14/2025 |
| 2.6.1.8-preview.93 | 48 | 12/20/2025 |
| 2.6.1.8-preview.90 | 40 | 12/20/2025 |
| 2.6.1.8-preview.61 | 36 | 12/16/2025 |
| 2.6.1.7 | 43 | 12/14/2025 |
| 2.6.1.7-preview.40 | 37 | 12/20/2025 |
| 2.6.1.7-preview.36 | 39 | 12/20/2025 |
| 2.6.1.7-preview.33 | 58 | 12/13/2025 |
| 2.6.1.7-preview.24 | 52 | 12/13/2025 |
| 2.6.1.7-preview.18 | 31 | 12/14/2025 |
| 2.6.1.6 | 37 | 12/14/2025 |
| 2.6.1.6-preview.19 | 49 | 12/20/2025 |
| 2.6.1.6-preview.18 | 43 | 12/17/2025 |
| 2.6.1.6-preview.9 | 47 | 12/20/2025 |
| 2.6.1.5 | 47 | 12/14/2025 |
| 2.6.1.5-preview.33 | 40 | 12/20/2025 |
| 2.6.1.5-preview.24 | 50 | 12/20/2025 |
| 2.6.1.5-preview.14 | 41 | 12/14/2025 |
| 2.6.1.5-preview.12 | 59 | 12/15/2025 |
| 2.6.1.5-preview.3 | 44 | 12/10/2025 |
| 2.6.1.4 | 44 | 12/14/2025 |
| 2.6.1.4-preview.2 | 46 | 12/20/2025 |
| 2.6.1.3 | 38 | 12/14/2025 |
| 2.6.1.2 | 43 | 01/01/2026 |
| 2.6.1.1 | 42 | 12/14/2025 |
| 2.6.1.1-preview.60 | 44 | 12/12/2025 |
| 2.6.1.1-preview.50 | 64 | 12/14/2025 |
| 2.6.1.1-preview.45 | 41 | 12/18/2025 |
| 2.6.1.1-preview.43 | 46 | 12/20/2025 |
| 2.6.1.1-preview.39 | 40 | 12/14/2025 |
| 2.6.1.1-preview.29 | 42 | 12/20/2025 |
| 2.6.1.1-preview.21 | 58 | 12/20/2025 |
| 2.6.1.1-preview.17 | 32 | 12/14/2025 |
| 2.6.1.1-preview.9 | 50 | 12/09/2025 |
| 2.6.1 | 46 | 12/13/2025 |
| 2.6.1-rc.172 | 34 | 12/14/2025 |
| 2.6.1-rc.170 | 39 | 12/11/2025 |
| 2.6.1-rc.169 | 42 | 01/01/2026 |
| 2.6.1-rc.165 | 46 | 01/01/2026 |
| 2.6.1-rc.153 | 42 | 12/17/2025 |
| 2.5.3-rc.147 | 35 | 12/14/2025 |
| 1.4.6.2 | 42 | 12/14/2025 |
| 1.4.6.2-preview28 | 41 | 12/14/2025 |
| 1.4.6.1 | 44 | 12/12/2025 |
| 1.4.6 | 37 | 12/14/2025 |
| 1.4.5 | 42 | 12/14/2025 |