Table of Contents

Class FontStyler

Namespace
ScottPlot.Stylers
Assembly
ScottPlot.dll

Helper methods for setting fonts to all components of a plot

public class FontStyler
Inheritance
FontStyler
Inherited Members
Extension Methods

Constructors

FontStyler(Plot)

Helper methods for setting fonts to all components of a plot

public FontStyler(Plot plot)

Parameters

plot Plot

Methods

Automatic()

Detects the best font to apply to every label in the plot based on the characters the they contain. If the best font for a label cannot be detected, the font last defined by Set(string) will be used.

public void Automatic()

Set(string, FontWeight, FontSlant, FontSpacing)

Apply the given font name to common plot components. Also sets the default font name so this font will be used for plot objects added in the future.

public SKTypeface? Set(string fontName, FontWeight weight = FontWeight.Normal, FontSlant slant = FontSlant.Upright, FontSpacing spacing = FontSpacing.Normal)

Parameters

fontName string
weight FontWeight
slant FontSlant
spacing FontSpacing

Returns

SKTypeface