RichTextKit v0.4

FontFallback.GetFontRuns Method

Assembly: Topten.RichTextKit.dll
Namespace: Topten.RichTextKit
Declaring Type: FontFallback

Splits a sequence of code points into a series of runs with font fallback applied

public static IEnumerable<Run> GetFontRuns(Utils.Slice<int> codePoints, SkiaSharp.SKTypeface typeface, char replacementCharacter = �);


Utils.Slice<int> codePoints

The code points

SkiaSharp.SKTypeface typeface

The preferred typeface

char replacementCharacter = �

The replacement character to be used for the run



A sequence of runs with unsupported code points replaced by a selected font fallback

Subscribe for more like this. No spam, just fun tech stuff :)

Or, find me on Twitter: @toptensoftware.