RichTextKit v0.4

FontMapper.TypefaceFromStyle Method

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

Maps a given style to a specific typeface

public virtual SkiaSharp.SKTypeface TypefaceFromStyle(IStyle style, bool ignoreFontVariants);


IStyle style

The style to be mapped

bool ignoreFontVariants

Indicates the mapping should ignore font variants (use to get font for ellipsis)



A mapped typeface

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

Or, find me on Twitter: @toptensoftware.