ScottPlot
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Properties | List of all members
ScottPlot.FontStyle Class Reference

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

Public Member Functions

override string ToString ()
 
void SetBestFont (string text)
 Use the characters in text to determine an installed system font most likely to support this character set.
 
FontStyle Clone ()
 
void ApplyToPaint (SKPaint paint)
 

Static Public Member Functions

static SKTypeface CreateTypefaceFromName (string font, bool bold, bool italic)
 
static SKTypeface CreateTypefaceFromFile (string path)
 

Properties

SKTypeface Typeface [get]
 
string Name = Fonts.Default [get, set]
 
bool Bold = false [get, set]
 
bool Italic = false [get, set]
 
Color Color = Colors.Black [get, set]
 
float Size = 12 [get, set]
 
bool AntiAlias = true [get, set]
 

Detailed Description

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

Member Function Documentation

◆ ApplyToPaint()

void ScottPlot.FontStyle.ApplyToPaint ( SKPaint  paint)
inline

◆ Clone()

FontStyle ScottPlot.FontStyle.Clone ( )
inline

◆ CreateTypefaceFromFile()

static SKTypeface ScottPlot.FontStyle.CreateTypefaceFromFile ( string  path)
inlinestatic

◆ CreateTypefaceFromName()

static SKTypeface ScottPlot.FontStyle.CreateTypefaceFromName ( string  font,
bool  bold,
bool  italic 
)
inlinestatic

◆ SetBestFont()

void ScottPlot.FontStyle.SetBestFont ( string  text)
inline

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

◆ ToString()

override string ScottPlot.FontStyle.ToString ( )
inline

Property Documentation

◆ AntiAlias

bool ScottPlot.FontStyle.AntiAlias = true
getset

◆ Bold

bool ScottPlot.FontStyle.Bold = false
getset

◆ Color

Color ScottPlot.FontStyle.Color = Colors.Black
getset

◆ Italic

bool ScottPlot.FontStyle.Italic = false
getset

◆ Name

string ScottPlot.FontStyle.Name = Fonts.Default
getset

◆ Size

float ScottPlot.FontStyle.Size = 12
getset

◆ Typeface

SKTypeface ScottPlot.FontStyle.Typeface
get

The documentation for this class was generated from the following file: