MicroEngine.Text.Shaping 0.6.0-alpha.1

This is a prerelease version of MicroEngine.Text.Shaping.
dotnet add package MicroEngine.Text.Shaping --version 0.6.0-alpha.1
                    
NuGet\Install-Package MicroEngine.Text.Shaping -Version 0.6.0-alpha.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MicroEngine.Text.Shaping" Version="0.6.0-alpha.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MicroEngine.Text.Shaping" Version="0.6.0-alpha.1" />
                    
Directory.Packages.props
<PackageReference Include="MicroEngine.Text.Shaping" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MicroEngine.Text.Shaping --version 0.6.0-alpha.1
                    
#r "nuget: MicroEngine.Text.Shaping, 0.6.0-alpha.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package MicroEngine.Text.Shaping@0.6.0-alpha.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MicroEngine.Text.Shaping&version=0.6.0-alpha.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=MicroEngine.Text.Shaping&version=0.6.0-alpha.1&prerelease
                    
Install as a Cake Tool

MicroEngine.Text.Shaping

Shaped text for MicroEngine: ShapedFont draws scripts whose letters change shape with their neighbours or run right to left (Arabic, Hebrew, Indic scripts) with HarfBuzz, on every platform the engine runs on, browsers included. ShapedFont.At(size) is an IFont, so widgets, layout and wrapping use it as they use a scalable font.

var font = ShapedFont.FromBytes(Graphics, Assets.Bytes("fonts/Inter-Regular.ttf"))
    .AddFallback(Assets.Bytes("fonts/NotoSansArabic-Regular.ttf"));
font.At(32).Draw(renderer, "مرحبا", new Vector2(24, 24), Color.White);

HarfBuzz is a native library, which is why shaping is a package of its own: games that only need Latin text do not carry it. Native HarfBuzz comes from the HarfBuzzSharp packages.

MicroEngine is in Alpha (0.x): public APIs may change incompatibly between versions; each change is listed in the migration notes. MIT licensed; HarfBuzz is under the Old MIT licence and HarfBuzzSharp under MIT.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.6.0-alpha.1 35 11/13/2026
0.5.0-alpha.2 60 11/10/2026

Alpha: public APIs may change incompatibly between 0.x versions. Release notes: https://github.com/NastMz/MicroEngine/blob/main/docs/guide/release-notes.md