Table of Contents

Enum FontWeight

Namespace
SharpDX.DirectWrite
Assembly
SharpDX.Direct2D1.dll

Represents the density of a typeface, in terms of the lightness or heaviness of the strokes. The enumerated values correspond to the usWeightClass definition in the OpenType specification. The usWeightClass represents an integer value between 1 and 999. Lower values indicate lighter weights; higher values indicate heavier weights.

public enum FontWeight

Fields

Black = 900

Predefined font weight : Black (900).

Bold = 700

Predefined font weight : Bold (700).

DemiBold = 600

Predefined font weight : Demi-bold (600).

ExtraBlack = 950

Predefined font weight : Extra-black (950).

ExtraBold = 800

Predefined font weight : Extra-bold (800).

ExtraLight = 200

Predefined font weight : Extra-light (200).

Heavy = 900

Predefined font weight : Heavy (900).

Light = 300

Predefined font weight : Light (300).

Medium = 500

Predefined font weight : Medium (500).

Normal = 400

Predefined font weight : Normal (400).

Regular = 400

Predefined font weight : Regular (400).

SemiBold = 600

Predefined font weight : Semi-bold (600).

SemiLight = 350

Predefined font weight : Semi-Light (350).

Thin = 100

Predefined font weight : Thin (100).

UltraBlack = 950

Predefined font weight : Ultra-black (950).

UltraBold = 800

Predefined font weight : Ultra-bold (800).

UltraLight = 200

Predefined font weight : Ultra-light (200).

Remarks

Weight differences are generally differentiated by an increased stroke or thickness that is associated with a given character in a typeface, as compared to a "normal" character from that same typeface. The following illustration shows an example of Normal and UltraBold weights for the Palatino Linotype typeface.

Note??Not all weights are available for all typefaces. When a weight is not available for a typeface, the closest matching weight is returned.?

Font weight values less than 1 or greater than 999 are considered invalid, and they are rejected by font API functions.