Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides a set of static predefined FontWeight values.
public ref class FontWeights abstract sealed
public static class FontWeights
type FontWeights = class
Public Class FontWeights
In the following code example, the FontWeight is set to "UltraBold".
<TextBlock FontWeight="UltraBold" FontFamily="Gil Sans MT">Hello, world</TextBlock>
A font weight describes the relative weight of a font, in terms of the lightness or heaviness of the strokes. Weight differences are generally differentiated by an increased stroke or thickness that is associated with a given character in a font, as compared to a "normal" character from that same font.
The FontWeights 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.
For more information about the OpenType 'usWeightClass' value, see the usWeightClass section of the OpenType specification.
Specifies a "Black" font weight.
Specifies a "Bold" font weight.
Specifies a "Demi-bold" font weight.
Specifies an "Extra-black" font weight.
Specifies an "Extra-bold" font weight.
Specifies an "Extra-light" font weight.
Specifies a "Heavy" font weight.
Specifies a "Light" font weight.
Specifies a "Medium" font weight.
Specifies a "Normal" font weight.
Specifies a "Regular" font weight.
Specifies a "Semi-bold" font weight.
Specifies a "Thin" font weight.
Specifies an "Ultra-black" font weight.
Specifies an "Ultra-bold" font weight.
Specifies an "Ultra-light" font weight.