[]
Initializes a new instance of the FontInfo class with specified font family, size, style, weight, and decoration.
public FontInfo(string familyName, float size, FontStyle style, FontWeight weight, FontDecoration decoration)
Type | Name | Description |
---|---|---|
string | familyName | The font family name. |
float | size | The font size in points. |
FontStyle | style | The font style. |
FontWeight | weight | The font weight. |
FontDecoration | decoration | The font decoration. |
Initializes a new instance of the FontInfo class with specified font family and size.
public FontInfo(string familyName, float size)
Type | Name | Description |
---|---|---|
string | familyName | The font family name. |
float | size | The font size in points. |
Initializes a new instance of the FontInfo class with specified font family, size, style, weight, and decoration as strings.
public FontInfo(string familyName, float size, string style, string weight, string decoration)
Type | Name | Description |
---|---|---|
string | familyName | The font family name. |
float | size | The font size in points. |
string | style | The font style as a string. |
string | weight | The font weight as a string. |
string | decoration | The font decoration as a string. |