[]
Initializes a new instance of a Font object.
public Font(string name, float sizeInPoints, FontStyle style)
Public Sub New(name As String, sizeInPoints As Single, style As FontStyle)
| Type | Name | Description |
|---|---|---|
| string | name | Font face. |
| float | sizeInPoints | Font size in points. |
| FontStyle | style | Font style attributes. |
Initializes a new instance of a Font object.
public Font(string name, float sizeInPoints)
Public Sub New(name As String, sizeInPoints As Single)
| Type | Name | Description |
|---|---|---|
| string | name | Font face. |
| float | sizeInPoints | Font size in points. |
Initializes a new instance of a Font object from a other font.
public Font(Font font, FontStyle style)
Public Sub New(font As Font, style As FontStyle)
| Type | Name | Description |
|---|---|---|
| Font | font | The other font. |
| FontStyle | style | Font style attributes. |
Initializes a new instance of a Font object from a stream containing raw font data.
public Font(FontStyle style, float sizeInPoints, Stream stream)
Public Sub New(style As FontStyle, sizeInPoints As Single, stream As Stream)
| Type | Name | Description |
|---|---|---|
| FontStyle | style | Font style attributes. |
| float | sizeInPoints | The font size in points. |
| Stream | stream | The stream with raw font data. |
Initializes a new instance of a Font object.
public Font(FontStyle style, float sizeInPoints, FontSubSet subset)
Public Sub New(style As FontStyle, sizeInPoints As Single, subset As FontSubSet)
| Type | Name | Description |
|---|---|---|
| FontStyle | style | Font style attributes. |
| float | sizeInPoints | The font size in points. |
| FontSubSet | subset | The font subset object. |
Initializes a new instance of a Font object.
public Font(FontStyle style, float sizeInPoints, byte[] fontData)
Public Sub New(style As FontStyle, sizeInPoints As Single, fontData As Byte())
| Type | Name | Description |
|---|---|---|
| FontStyle | style | Font style attributes. |
| float | sizeInPoints | The font size in points. |
| byte[] | fontData | The raw font file data. |