Share via


FontWeight

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets the top-level font weight for the content in this element.

<object FontWeight="FontWeight"  .../>
value = object.FontWeight
object.FontWeight = value

Property Value

Type: FontWeight Enumeration

One of the enumeration values that specifies the desired font weight.

This property is read/write. The default value is Normal.

Remarks

The FontWeight 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. See the enumeration table in FontWeight for usWeightClass information.

NoteNote:

The FontWeight property value may not be the font weight used during rendering because of font fallback.

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 typical character from that same font.

The "Applies To" section of this topic lists LineBreak, because it does exist in the object model and you can get and set it. However, all LineBreak properties are ignored for rendering purposes.

Applies To

LineBreak

Run

PasswordBox (Silverlight 2)

TextBlock

TextBox (Silverlight 2)