All projects

Universal text preparation

Pretext

Predictable, allocation-conscious text layout for any SkiaSharp UI.

StatusActive
TierMaintained
DomainGraphics
Repositorywieslawsoltes/PretextSharp

Universal text preparation and line layout with grapheme-aware wrapping, locale segmentation, bidi, and streaming line walking.

Pretext is maintained as a focused part of a wider open-source .NET UI ecosystem. Its boundaries are designed so applications can adopt the useful layer without taking the entire stack.

01

Unicode-aware wrapping

02

Locale-sensitive segmentation

03

Bidirectional text

04

Streaming, allocation-light APIs

Where it fits.

  • Teams building graphics software on .NET
  • Developers who need reusable, inspectable infrastructure
  • Open-source contributors looking for practical framework work
.NET

Current SDK

Avalonia / cross-platform

Active

Source

Open on GitHub

Real output,
not a mockup.

Pretext GitHub repository preview
The Pretext repository contains the current source, samples, releases, and issue history.

Clear layers.
Replaceable seams.

01

Input

Portable data and framework resources enter through focused APIs.

02

Preparation

Geometry, text, images, or effects become renderer-ready operations.

03

Rendering

The backend records and submits deterministic drawing work.

Activeproject status
2composable packages
Open sourceissues and implementation
LiveGitHub metadata

From package
to first frame.

Choose the package workflow used by your repository, then start from the smallest working example. Replace VERSION with the current stable or prerelease version shown on NuGet.

01 · Install
Terminal
dotnet add package Pretext
dotnet add package Pretext.SkiaSharp
02 · Use · csharp
QuickStart.cs
var prepared = PretextLayout.PrepareWithSegments(text, "16px Inter");
var lines = PretextLayout.LayoutWithLines(prepared, 320, 22);
foreach (var line in lines.Lines)
Console.WriteLine(line.Text);

Start focused.
Compose as needed.

The repository is the source of truth.

Use the current documentation and samples, inspect changes, report issues, or support continued open-source maintenance.

ProTranslate

Search everything.

Loading the index…

move open esc close

Preparing metadata and full-text search…