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
Slant
public FontSlant Slant { get; set; }
Property Value
Typeface
public SKTypeface Typeface { get; }
Property Value
Weight
public FontWeight Weight { get; set; }
Property Value
Width
public FontSpacing Width { get; set; }
Property Value
Methods
ApplyToPaint(Paint)
public void ApplyToPaint(Paint paint)
Parameters
paintPaint
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
pathstring
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
textstring
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.