DeltaText 0.0.8
dotnet add package DeltaText --version 0.0.8
NuGet\Install-Package DeltaText -Version 0.0.8
<PackageReference Include="DeltaText" Version="0.0.8" />
<PackageVersion Include="DeltaText" Version="0.0.8" />
<PackageReference Include="DeltaText" />
paket add DeltaText --version 0.0.8
#r "nuget: DeltaText, 0.0.8"
#:package DeltaText@0.0.8
#addin nuget:?package=DeltaText&version=0.0.8
#tool nuget:?package=DeltaText&version=0.0.8
DeltaText
DeltaText is a renderer-neutral .NET text producer. It shapes UTF-16 text and returns owned glyph images and metrics for CPU previews or a renderer.
What it provides
- Immutable font instances and shaped glyph runs.
- Unicode-aware text shaping through the public text service.
- Grayscale coverage and SDF glyph images.
- Managed MSDF and color glyph-image modes where supported by the input font.
- Owned pixel snapshots and glyph metrics that can outlive the shaping call.
- A CPU renderer for producing an owned RGBA8 preview bitmap.
Quick start
<PackageReference Include="DeltaText" Version="0.0.8" />
using Delta.Text;
using Delta.Text.Contract;
using ITextService text = new SixLaborsTextService();
byte[] fontBytes = File.ReadAllBytes("font.ttf");
FontInstanceId font = text.OpenFont(new FontOpenRequest(
"embedded-font", fontBytes, 0));
ShapedText shaped = text.Shape(new TextShapeRequest(
"Hello".AsMemory(), 32f, new[] { font }));
CpuTextImage image = new CpuTextRenderer(text).Render(shaped);
The application owns the returned shaped text and pixel snapshots and disposes font instances when they are no longer needed. Renderers decide atlas packing, UVs, batching and GPU resource lifetime.
Capabilities and limits
DeltaText targets .NET 8.0. It owns shaping and CPU glyph-image generation, not GPU resources or renderer batching. The canonical contract defines the supported image modes and fallback behavior; unsupported font formats use the documented fallback rather than silently claiming full color support.
Packages and examples
Install DeltaText for the producer API. See the FontCheck
probe for a runnable headless example.
Further reading
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. |
-
net8.0
- DeltaMaths (>= 0.0.10)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on DeltaText:
| Package | Downloads |
|---|---|
|
DeltaXAML.Contract
Neutral input and borrowed UI display-list contracts for DeltaXAML consumers. |
|
|
DeltaXAML
Retained XAML UI library with typed properties, bindings and layout. |
GitHub repositories
This package is not used by any popular GitHub repositories.