Table of Contents

Enum FontWeight

Namespace
Avalonia.Media
Assembly
Avalonia.Base.dll

Defines a set of predefined font weights.

public enum FontWeight

Fields

Black = 900

Specifies a "black" font weight.

Bold = 700

Specifies a "bold" font weight.

DemiBold = 600

Specifies a "demi-bold" font weight.

ExtraBlack = 950

Specifies an "extra black" font weight.

ExtraBold = 800

Specifies an "extra bold" font weight.

ExtraLight = 200

Specifies an "extra light" font weight.

Heavy = 900

Specifies a "heavy" font weight.

Light = 300

Specifies a "light" font weight.

Medium = 500

Specifies a "medium" font weight.

Normal = 400

Specifies a "normal" font weight.

Regular = 400

Specifies a "regular" font weight.

SemiBold = 600

Specifies a "semi-bold" font weight.

SemiLight = 350

Specifies a "semi light" font weight.

Solid = 900

Specifies a "solid" font weight.

Thin = 100

Specifies a "thin" font weight.

UltraBlack = 950

Specifies an "ultra black" font weight.

UltraBold = 800

Specifies an "ultra bold" font weight.

UltraLight = 200

Specifies an "ultra light" font weight.

Remarks

As well as the values defined by this enumeration you can also pass any integer value by casting it to FontWeight, e.g.

(FontWeight)550
.