Class FontDetails
Summary details of the font used to draw a glyph.
public class FontDetails
- Inheritance
-
FontDetails
- Inherited Members
Constructors
FontDetails(string, bool, int, bool)
Create a new FontDetails.
public FontDetails(string name, bool isBold, int weight, bool isItalic)
Parameters
Fields
BoldWeight
The bold weight for a font.
public const int BoldWeight = 700
Field Value
DefaultWeight
The normal weight for a font.
public const int DefaultWeight = 500
Field Value
Properties
IsBold
Whether the font is bold.
public bool IsBold { get; }
Property Value
IsItalic
Whether the font is italic.
public bool IsItalic { get; }
Property Value
Name
The font name.
public string Name { get; }
Property Value
Weight
The font weight, values above 500 represent bold.
public int Weight { get; }
Property Value
Methods
ToString()
public override string ToString()