[]
Initializes an instance of class Font.
public Font(Font prototype, FontStyle newStyle)
Type | Name | Description |
---|---|---|
Font | prototype | The prototype. |
FontStyle | newStyle | The font style. |
Type | Condition |
---|---|
ArgumentException | Occurs when prototype.size is less than or equal to 0. |
Initializes an instance of class Font.
public Font(string familyName, float emSize)
Type | Name | Description |
---|---|---|
string | familyName | The family name. |
float | emSize | The size. |
Type | Condition |
---|---|
ArgumentException | Occurs when size is less than or equal to 0. |
Initializes an instance of class Font.
public Font(string familyName, float emSize, FontStyle style)
Type | Name | Description |
---|---|---|
string | familyName | The family name. |
float | emSize | The size. |
FontStyle | style | The font style. |
Initializes an instance of class Font.
public Font(string familyName, float emSize, GraphicsUnit unit)
Type | Name | Description |
---|---|---|
string | familyName | The family name. |
float | emSize | The size. |
GraphicsUnit | unit | The graphic Unit. |
Initializes an instance of class Font.
public Font(string familyName, float emSize, FontStyle style, GraphicsUnit unit)
Type | Name | Description |
---|---|---|
string | familyName | The family name. |
float | emSize | The size. |
FontStyle | style | The font style. |
GraphicsUnit | unit | The graphic Unit. |
Initializes an instance of class Font.
public Font(string familyName, float emSize, FontStyle style, GraphicsUnit unit, byte gdiCharSet)
Type | Name | Description |
---|---|---|
string | familyName | The family name. |
float | emSize | The size. |
FontStyle | style | The font style. |
GraphicsUnit | unit | The graphic Unit. |
byte | gdiCharSet | The GDI char set. |
Initializes an instance of class Font.
public Font(string familyName, float emSize, FontStyle style, GraphicsUnit unit, byte gdiCharSet, bool gdiVerticalFont)
Type | Name | Description |
---|---|---|
string | familyName | The family name. |
float | emSize | The size. |
FontStyle | style | The font style. |
GraphicsUnit | unit | The graphic Unit. |
byte | gdiCharSet | The GDI char set. |
bool | gdiVerticalFont | Determines whether the font is vertical. |