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
SkiaSharp.HarfBuzz
This package adds text shaping support to SkiaSharp via HarfBuzz.
15
SkiaSharp.HarfBuzz
This package adds text shaping support to SkiaSharp via HarfBuzz.
14
HarfBuzzSharp.NativeAssets.Linux
HarfBuzzSharp is a cross-platform OpenType text shaping engine for .NET platforms.
13
SkiaSharp.HarfBuzz
This package adds text shaping support to SkiaSharp via HarfBuzz.
13
HarfBuzzSharp.NativeAssets.Linux
HarfBuzzSharp is a cross-platform OpenType text shaping engine for .NET platforms.
12
SkiaSharp.HarfBuzz
This package adds text shaping support to SkiaSharp via HarfBuzz.
12

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