Table of Contents

Class FontStyle

Namespace
ScottPlot
Assembly
ScottPlot.dll

This configuration object (reference type) permanently lives inside objects which require styling. It is recommended to use this object as an init-only property.

public class FontStyle
Inheritance
FontStyle
Inherited Members
Extension Methods

Properties

AntiAlias

public bool AntiAlias { get; set; }

Property Value

bool

Bold

public bool Bold { get; set; }

Property Value

bool

Color

public Color Color { get; set; }

Property Value

Color

Italic

public bool Italic { get; set; }

Property Value

bool

Name

public string Name { get; set; }

Property Value

string

Size

public float Size { get; set; }

Property Value

float

Typeface

public SKTypeface Typeface { get; }

Property Value

SKTypeface

Methods

ApplyToPaint(SKPaint)

public void ApplyToPaint(SKPaint paint)

Parameters

paint SKPaint

Clone()

public FontStyle Clone()

Returns

FontStyle

CreateTypefaceFromFile(string)

[Obsolete("This method is deprecated. Use Fonts.GetTypeface(font, bold, italic) instead.", true)]
public static SKTypeface CreateTypefaceFromFile(string path)

Parameters

path string

Returns

SKTypeface

CreateTypefaceFromName(string, bool, bool)

[Obsolete("This method is deprecated. Use Fonts.GetTypeface(font, bold, italic) instead.", true)]
public static SKTypeface CreateTypefaceFromName(string font, bool bold, bool italic)

Parameters

font string
bold bool
italic bool

Returns

SKTypeface

SetBestFont(string)

Use the characters in text to determine an installed system font most likely to support this character set.

public void SetBestFont(string text)

Parameters

text string

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.