FontStretch Structure
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Describes the degree to which a font has been stretched, compared to the normal aspect ratio of that font.
Assembly: System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.
The FontStretch type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | Equals | Compares an object with the current FontStretch 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 | Creates a String representation of the current FontStretch object. (Overrides ValueType::ToString().) |
| Name | Description | |
|---|---|---|
![]() ![]() | Equality | Compares two instances of FontStretch for equality. |
![]() ![]() | Inequality | Evaluates two instances of FontStretch to determine inequality. |
A font stretch describes the degree to which a font form is stretched from its normal aspect ratio, which is the original width to height ratio specified for the glyphs in the font.
You must use static properties of FontStretches to specify a FontStretch value. In XAML, you specify the name of a FontStretches property as the attribute value. This functionality is enabled by native XAML parsing behavior that processes the string value.
FontStretches Static Property Names
Font stretch | usWidthClass | % of normal |
|---|---|---|
1 | 50.0% | |
2 | 62.5% | |
3 | 75.0% | |
4 | 87.5% | |
5 | 100% | |
6 | 112.5% | |
7 | 125.0% | |
8 | 150.0% | |
9 | 200.0% |
The FontStretches values correspond to the usWidthClass definition in the OpenType specification. The usWidthClass represents an integer value between 1 and 9—lower values indicate narrower widths; higher values indicate wider widths.



