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);

Parameters

IStyle style

The style to be mapped

bool ignoreFontVariants

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

Returns

SkiaSharp.SKTypeface

A mapped typeface