[]
        
(Showing Draft Content)

C1.Util.Font.-ctor

Font Constructor

Font(string, float, FontStyle)

Initializes a new instance of a Font object.

Declaration
public Font(string name, float sizeInPoints, FontStyle style)
Public Sub New(name As String, sizeInPoints As Single, style As FontStyle)
Parameters
Type Name Description
string name

Font face.

float sizeInPoints

Font size in points.

FontStyle style

Font style attributes.

Font(string, float)

Initializes a new instance of a Font object.

Declaration
public Font(string name, float sizeInPoints)
Public Sub New(name As String, sizeInPoints As Single)
Parameters
Type Name Description
string name

Font face.

float sizeInPoints

Font size in points.

Font(Font, FontStyle)

Initializes a new instance of a Font object from a other font.

Declaration
public Font(Font font, FontStyle style)
Public Sub New(font As Font, style As FontStyle)
Parameters
Type Name Description
Font font

The other font.

FontStyle style

Font style attributes.

Font(FontStyle, float, Stream)

Initializes a new instance of a Font object from a stream containing raw font data.

Declaration
public Font(FontStyle style, float sizeInPoints, Stream stream)
Public Sub New(style As FontStyle, sizeInPoints As Single, stream As Stream)
Parameters
Type Name Description
FontStyle style

Font style attributes.

float sizeInPoints

The font size in points.

Stream stream

The stream with raw font data.

Font(FontStyle, float, FontSubSet)

Initializes a new instance of a Font object.

Declaration
public Font(FontStyle style, float sizeInPoints, FontSubSet subset)
Public Sub New(style As FontStyle, sizeInPoints As Single, subset As FontSubSet)
Parameters
Type Name Description
FontStyle style

Font style attributes.

float sizeInPoints

The font size in points.

FontSubSet subset

The font subset object.

Font(FontStyle, float, byte[])

Initializes a new instance of a Font object.

Declaration
public Font(FontStyle style, float sizeInPoints, byte[] fontData)
Public Sub New(style As FontStyle, sizeInPoints As Single, fontData As Byte())
Parameters
Type Name Description
FontStyle style

Font style attributes.

float sizeInPoints

The font size in points.

byte[] fontData

The raw font file data.