Table of Contents

Class FastFont

Namespace: FastReport.Olap
Assembly: FastCube.Core.dll

Font class for replace system drawing class for Core package

[TypeConverter(typeof(FastFontConverter))]
public class FastFont

Inheritance

objectFastFont

Constructors

FastFont(string, float, FastFontStyle, FastGraphicsUnit, byte, bool)

create instance of font

public FastFont(string familyName, float fontSize, FastFontStyle fontStyle = FastFontStyle.Regular, FastGraphicsUnit point = FastGraphicsUnit.Point, byte fontCharSet = 1, bool vertical = false)

Parameters

familyName string

fontSize float

fontStyle FastFontStyle

point FastGraphicsUnit

fontCharSet byte

vertical bool

Properties

Bold

Indicate the font is bold

public bool Bold { get; }

Property Value

bool

GdiCharSet

Internal usage only

public byte GdiCharSet { get; }

Property Value

byte

GdiVerticalFont

Internal usage only

public bool GdiVerticalFont { get; }

Property Value

bool

Italic

Indicate the font is italic

public bool Italic { get; }

Property Value

bool

Name

Name of the font

public string Name { get; }

Property Value

string

Size

Current font size of the font

public float Size { get; }

Property Value

float

SizeInPoints

Return size in points

public float SizeInPoints { get; }

Property Value

float

Style

Style of the font

public FastFontStyle Style { get; }

Property Value

FastFontStyle

Underline

Indicate the font is underline

public bool Underline { get; }

Property Value

bool

Unit

Current unit type of the font

[TypeConverter(typeof(FastFontConverter.FontUnitConverter))]
public FastGraphicsUnit Unit { get; }

Property Value

FastGraphicsUnit

Methods

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.