HarfBuzzSharp 14.2.1.300

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
FreeSpire.Doc
Free Spire.Doc for .NET is a professional and reliable word component for commercial and personal use. It enables developers to quickly and easily generate, read, write, save, print and convert documents on any .NET applications (ASP.NET, WinForms and Web Service, .NET Core) and it supports in C#, VB.NET. The featured function, conversion allows converting Word documents (Word 97-2003, Word 2007, Word 2010, Word 2013) to commonly used file format, format, such as XML, RTF, TXT, PDF, XPS, EPUB, HTML and Image etc. Free Spire.Doc for.NET is 100% FREE word component. Free Spire.Doc for .NET Features: *No Microsoft Word Automation *Speed and Easy-to-Use *Batch of Great Functions *High Performance *Totally Free Main functions High quality conversion Rich Word Document Features Process Pre-Existing Word Documents Other Technical Features
16
SkiaSharp.HarfBuzz
This package adds text shaping support to SkiaSharp via HarfBuzz.
12
SkiaSharp.HarfBuzz
This package adds text shaping support to SkiaSharp via HarfBuzz.
11
HarfBuzzSharp.NativeAssets.Linux
HarfBuzzSharp is a cross-platform OpenType text shaping engine for .NET platforms.
11
SkiaSharp.HarfBuzz
This package adds text shaping support to SkiaSharp via HarfBuzz.
10

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.100-preview.1.26512.10 2 16.10.2026
14.4.0-rc.1.26512.8 1 16.10.2026
14.4.0-preview.2.26479.13 1 30.09.2026
14.2.1.500-preview.1.26471.14 1 30.09.2026
14.2.1.400-rc.1.26479.14 1 30.09.2026
14.2.1.400-preview.2.26471.11 1 30.09.2026
14.2.1.400-preview.1.26454.9 1 23.09.2026
14.2.1.301 1 30.09.2026
14.2.1.300 1 30.09.2026
14.2.1.300-rc.1.26456.2 1 23.09.2026
14.2.1.300-preview.1.26454.6 1 23.09.2026
14.2.1.203 1 30.09.2026
14.2.1.202 1 30.09.2026
14.2.1.201 1 23.09.2026
14.2.1.200 1 23.09.2026
14.2.1.200-rc.1.26426.14 1 01.09.2026
14.2.1.105 1 30.09.2026
14.2.1.104 1 30.09.2026
14.2.1.103 1 23.09.2026
14.2.1.102 2 03.09.2026
14.2.1.5 1 30.09.2026
14.2.1.4 1 30.09.2026
14.2.1.3 2 03.09.2026
14.2.1.2 3 12.08.2026
14.2.1.1 3 20.07.2026
14.2.1 4 09.07.2026
14.2.1-rc.1.1 4 01.07.2026
14.2.1-preview.2.1 4 29.06.2026
14.2.1-preview.1.1 4 06.07.2026
14.2.0 4 24.06.2026
14.2.0-rc.1.2 4 14.06.2026
14.2.0-preview.1.1 5 21.06.2026
8.3.1.6-preview.3.1 5 26.05.2026
8.3.1.6-preview.2.1 5 17.05.2026
8.3.1.6-preview.1.1 6 04.05.2026
8.3.1.5 5 26.05.2026
8.3.1.5-preview.1.1 4 28.04.2026
8.3.1.4-preview.1.1 4 21.02.2026
8.3.1.3 7 11.02.2026
8.3.1.3-preview.3.1 4 11.02.2026
8.3.1.3-preview.2.3 6 11.02.2026
8.3.1.3-preview.1 7 10.12.2025
8.3.1.2 8 10.11.2025
8.3.1.2-preview.1 7 10.12.2025
8.3.1.1 11 02.06.2025
8.3.1.1-stable.1 9 03.06.2025
8.3.1.1-preview.1.2 7 04.06.2025
8.3.1-preview.2.3 10 11.03.2025
8.3.1-preview.1.2 10 11.03.2025
8.3.0.1 12 21.03.2025
8.3.0 14 21.03.2025
8.3.0-preview.6.1 10 11.03.2025
8.3.0-preview.5.4 10 11.03.2025
8.3.0-preview.4.1 10 11.03.2025
8.3.0-preview.3.1 8 11.03.2025
8.3.0-preview.2.1 10 11.03.2025
8.3.0-preview.1.8 10 11.03.2025
8.3.0-preview.0.132 10 11.03.2025
7.3.0.3 13 21.03.2025
7.3.0.3-preview.2.2 10 11.03.2025
7.3.0.3-preview.1.1 10 11.03.2025
7.3.0.2 11 21.03.2025
7.3.0.2-preview.1.1 9 04.06.2025
7.3.0.1 12 21.03.2025
7.3.0 14 21.03.2025
7.3.0-preview.1.2 10 11.03.2025
2.8.2.5 12 21.03.2025
2.8.2.4 12 21.03.2025
2.8.2.4-preview.96 10 11.03.2025
2.8.2.4-preview.95 10 11.03.2025
2.8.2.4-preview.89 11 11.03.2025
2.8.2.4-preview.84 11 11.03.2025
2.8.2.4-preview.82 10 11.03.2025
2.8.2.4-preview.76 10 11.03.2025
2.8.2.4-preview.70 10 11.03.2025
2.8.2.3 12 21.03.2025
2.8.2.2 12 21.03.2025
2.8.2.2-preview.8 10 11.03.2025
2.8.2.1 12 21.03.2025
2.8.2.1-preview.108 10 11.03.2025
2.8.2.1-preview.104 10 11.03.2025
2.8.2.1-preview.91 10 11.03.2025
2.8.2.1-preview.79 10 11.03.2025
2.8.2.1-preview.75 10 11.03.2025
2.8.2.1-preview.71 10 11.03.2025
2.8.2.1-preview.63 10 11.03.2025
2.8.2.1-preview.1 8 11.03.2025
2.8.2 14 21.03.2025
2.8.2-preview.266 10 11.03.2025
2.8.2-preview.256 10 11.03.2025
2.8.2-preview.254 10 11.03.2025
2.8.2-preview.232 10 11.03.2025
2.8.2-preview.209 10 11.03.2025
2.8.2-preview.187 10 11.03.2025
2.8.2-preview.179 11 11.03.2025
2.8.2-preview.178 10 11.03.2025
2.8.2-preview.155 8 11.03.2025
2.8.2-preview.152 10 11.03.2025
2.8.2-preview.150 11 11.03.2025
2.8.2-preview.145 10 11.03.2025
2.8.2-preview.140 11 11.03.2025
2.8.2-preview.139 10 11.03.2025
2.8.2-preview.127 10 11.03.2025
2.6.1.9 10 21.03.2025
2.6.1.9-preview.120 10 11.03.2025
2.6.1.9-preview.9 10 11.03.2025
2.6.1.9-preview.6 12 11.03.2025
2.6.1.9-preview.5 10 11.03.2025
2.6.1.9-preview.2 10 11.03.2025
2.6.1.8 11 21.03.2025
2.6.1.8-preview.93 10 11.03.2025
2.6.1.8-preview.90 10 11.03.2025
2.6.1.8-preview.61 10 11.03.2025
2.6.1.7 12 21.03.2025
2.6.1.7-preview.40 10 11.03.2025
2.6.1.7-preview.36 9 11.03.2025
2.6.1.7-preview.33 11 11.03.2025
2.6.1.7-preview.24 10 11.03.2025
2.6.1.7-preview.18 10 11.03.2025
2.6.1.6 12 21.03.2025
2.6.1.6-preview.19 10 11.03.2025
2.6.1.6-preview.18 10 11.03.2025
2.6.1.6-preview.9 10 11.03.2025
2.6.1.5 12 21.03.2025
2.6.1.5-preview.33 10 11.03.2025
2.6.1.5-preview.24 10 11.03.2025
2.6.1.5-preview.14 10 11.03.2025
2.6.1.5-preview.12 10 11.03.2025
2.6.1.5-preview.3 10 11.03.2025
2.6.1.4 12 21.03.2025
2.6.1.4-preview.2 10 11.03.2025
2.6.1.3 10 02.06.2025
2.6.1.2 12 21.03.2025
2.6.1.1 12 21.03.2025
2.6.1.1-preview.60 10 11.03.2025
2.6.1.1-preview.50 10 11.03.2025
2.6.1.1-preview.45 10 11.03.2025
2.6.1.1-preview.43 10 11.03.2025
2.6.1.1-preview.39 10 11.03.2025
2.6.1.1-preview.29 10 11.03.2025
2.6.1.1-preview.21 10 11.03.2025
2.6.1.1-preview.17 10 11.03.2025
2.6.1.1-preview.9 10 11.03.2025
2.6.1 15 21.03.2025
2.6.1-rc.172 11 21.03.2025
2.6.1-rc.170 11 21.03.2025
2.6.1-rc.169 10 21.03.2025
2.6.1-rc.165 11 21.03.2025
2.6.1-rc.153 15 21.03.2025
2.5.3-rc.147 10 21.03.2025
1.4.6.2 8 21.03.2025
1.4.6.2-preview28 10 11.03.2025
1.4.6.1 12 21.03.2025
1.4.6 14 21.03.2025
1.4.5 14 21.03.2025