Pretext is the backend-agnostic engine package. It owns preparation, segmentation, bidi handling, break analysis, and the line-fitting APIs that the rest of the repository builds on.
Pretext owns:
PretextLayoutPrepare and PrepareWithSegmentsLayoutLayoutWithLinesLayoutNextLine, LayoutNextLineRange, and WalkLineRangesPretext does not draw text. Your host still owns:
Pretext depends on Pretext.Contracts and expects a text-measurement factory to be available at runtime.
Typical pairings:
Pretext + Pretext.DirectWrite for Windows-native hostsPretext + Pretext.FreeType for Linux-native hostsPretext + Pretext.CoreText for macOS-native hostsPretext + Pretext.SkiaSharp for portable SkiaSharp hosts or as a fallbackIf you do not call PretextLayout.SetTextMeasurerFactory(...), the engine discovers factories from referenced Pretext*.dll assemblies, filters them by IsSupported, then picks the supported factory with the highest Priority.
That means:
Pretext.SkiaSharp stays available as the low-priority portable fallback