HarfBuzzSharp 14.4.0.100

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.
76
SkiaSharp.HarfBuzz
This package adds text shaping support to SkiaSharp via HarfBuzz.
75
SkiaSharp.HarfBuzz
This package adds text shaping support to SkiaSharp via HarfBuzz.
73
SkiaSharp.HarfBuzz
This package adds text shaping support to SkiaSharp via HarfBuzz.
72
SkiaSharp.HarfBuzz
This package adds text shaping support to SkiaSharp via HarfBuzz.
71

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 6.0

.NET Framework 4.8

.NET 10.0

.NET 10.0

.NET 10.0

.NET 10.0

.NET 10.0

.NET 10.0

.NET Framework 4.6.2

.NET 10.0

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