Table of Contents

Struct FontInfo

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

Defines font information. This is different from Font as contains only font properties and no font handle.

public struct FontInfo

Constructors

FontInfo()

Initializes a new instance of the FontInfo struct.

FontInfo(Font)

Creates FontInfo instance using Font properties.

FontInfo(string, double, FontStyle)

Initializes a new FontInfo using a specified font familty name, size in points and style.

Properties

DefaultFontFamily

Gets or sets default font family for the FontInfo instances.

DefaultSizeInPoints

Gets or sets default font size for the FontInfo instances.

FontFamily

Gets the FontFamily name associated with the font.

Name

Gets the font family name of this FontInfo.

SizeInPoints

Gets the em-size, in points, of the font.

Style

Gets font style information.

Methods

ToString()

Operators

implicit operator FontInfo(Font)

Implicit operator conversion from the Font instance.

implicit operator Font(FontInfo)

Implicit operator conversion to the Font instance.