[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Refers to the density of a typeface, in terms of the lightness or heaviness of the strokes.
Assembly: System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.
Thetype exposes the following members.
|Equals||Determines whether the current object is equal to a specified object. (Overrides ValueType.Equals(Object).)|
|Finalize||Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)|
|GetHashCode||Retrieves the hash code for this object. (Overrides ValueType.GetHashCode().)|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|MemberwiseClone||Creates a shallow copy of the current Object. (Inherited from Object.)|
|ToString||Returns a text string that represents the value of the object. (Overrides ValueType.ToString().)|
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.
Note Not all weights are available for all typefaces. When a weight is not available for a typeface, the closest matching weight is returned.
is the value type for Windows Phone properties or attributes that specify a font weight value, but you must use static properties of FontWeights to provide a value. In XAML, you specify the name of a FontWeights property as the attribute value. This functionality is enabled by native XAML parsing behavior that processes the string value.
FontWeights Static Property Names
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.