RichTextKit v0.3

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

[Runtime.CompilerServices.IteratorStateMachine(Topten.RichTextKit.FontFallback+<GetFontRuns>d__2)]
public static IEnumerable<Run> GetFontRuns(Utils.Slice<int> codePoints, SkiaSharp.SKTypeface typeface);

Parameters

Utils.Slice<int> codePoints

The code points

SkiaSharp.SKTypeface typeface

The preferred typeface

Returns

IEnumerable<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.