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
Bold
public bool Bold { get; set; }
Property Value
Color
public Color Color { get; set; }
Property Value
Italic
public bool Italic { get; set; }
Property Value
Name
public string Name { get; set; }
Property Value
Size
public float Size { get; set; }
Property Value
Typeface
public SKTypeface Typeface { get; }
Property Value
Methods
ApplyToPaint(SKPaint)
public void ApplyToPaint(SKPaint paint)
Parameters
paint
SKPaint
Clone()
public FontStyle Clone()
Returns
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
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
Returns
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.