[]
Initializes a font with the given family name and em size, using a regular style measured in points.
public Font(string familyName, float emSize)
| Type | Name | Description |
|---|---|---|
| string | familyName | The name of the font family (for example, |
| float | emSize | The em size of the font, in points; must be greater than zero. |
Initializes a font with the given family name, em size and style, measured in points.
public Font(string familyName, float emSize, FontStyle style)
| Type | Name | Description |
|---|---|---|
| string | familyName | The name of the font family (for example, |
| float | emSize | The em size of the font, in points; must be greater than zero. |
| FontStyle | style | The combination of styles (bold, italic, and so on) to apply. |
Initializes a font with the given family name and em size, expressed in the specified unit, using a regular style.
public Font(string familyName, float emSize, GraphicsUnit unit)
| Type | Name | Description |
|---|---|---|
| string | familyName | The name of the font family (for example, |
| float | emSize | The em size of the font, expressed in |
| GraphicsUnit | unit | The unit of measure that |
Initializes a font with the given family name, em size, style and unit of measure.
public Font(string familyName, float emSize, FontStyle style, GraphicsUnit unit)
| Type | Name | Description |
|---|---|---|
| string | familyName | The name of the font family (for example, |
| float | emSize | The em size of the font, expressed in |
| FontStyle | style | The combination of styles (bold, italic, and so on) to apply. |
| GraphicsUnit | unit | The unit of measure that |
Initializes a font with full control over family name, size, style, unit and GDI character-set information.
public Font(string familyName, float emSize, FontStyle style, GraphicsUnit unit, byte gdiCharSet, bool gdiVerticalFont)
| Type | Name | Description |
|---|---|---|
| string | familyName | The name of the font family (for example, |
| float | emSize | The em size of the font, expressed in |
| FontStyle | style | The combination of styles (bold, italic, and so on) to apply. |
| GraphicsUnit | unit | The unit of measure that |
| byte | gdiCharSet | The GDI character set to use, as defined by the Windows |
| bool | gdiVerticalFont | true to select the vertical (top-to-bottom) variant of the font; otherwise, false. |