Skip to main content

alphaTab.model.Font

(no description)

 class Font

Properties​

families​

Gets the font family name.

families: string[];

family​

Gets the first font family name.

family: string;

isBold​

(no description)

readonly isBold: boolean;

isItalic​

(no description)

readonly isItalic: boolean;

size​

Gets the font size in pixels.

size: number;

style​

Gets the font style.

style: FontStyle;

weight​

Gets the font weight.

weight: FontWeight;

Methods​

fromJson​

(no description)

static fromJson(v: unknown): Font | undefined
ParameterSummary
vAll

(no description)

toCssString​

(no description)

toCssString(scale?: number): string
ParameterSummary
scaleAll

(no description)

toJson​

(no description)

static toJson(font: Font | undefined): Map<string, unknown> | undefined
ParameterSummary
fontAll

(no description)

withFamilyList​

Initializes a new instance of the Font class.

static withFamilyList(families: string[], size: number, style?: FontStyle, weight?: FontWeight): Font
ParameterSummary
familiesAll

The families.

sizeAll

The size.

styleAll

The style.

weightAll

The weight.

withSize​

(no description)

withSize(newSize: number): Font
ParameterSummary
newSizeAll

(no description)