FontStretches Class
Provides a set of static predefined FontStretch values.
Assembly: PresentationCore (in PresentationCore.dll)
The FontStretches type exposes the following members.
| Name | Description | |
|---|---|---|
![]() ![]() | Condensed | Specifies a condensed FontStretch. |
![]() ![]() | Expanded | Specifies an expanded FontStretch. |
![]() ![]() | ExtraCondensed | Specifies an extra-condensed FontStretch. |
![]() ![]() | ExtraExpanded | Specifies an extra-expanded FontStretch. |
![]() ![]() | Medium | Specifies a medium FontStretch. |
![]() ![]() | Normal | Specifies a normal FontStretch. |
![]() ![]() | SemiCondensed | Specifies a semi-condensed FontStretch. |
![]() ![]() | SemiExpanded | Specifies a semi-expanded FontStretch. |
![]() ![]() | UltraCondensed | Specifies an ultra-condensed FontStretch. |
![]() ![]() | UltraExpanded | Specifies an ultra-expanded FontStretch. |
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.
The FontStretches values correspond to the usWidthClass definition in the OpenType specification. The usWidthClass represents an integer value between 1 and 9. Lower numeric values indicate narrower widths; higher values indicate wider widths.
Font stretch | usWidthClass | % of normal |
|---|---|---|
1 | 50% | |
2 | 62.5% | |
3 | 75% | |
4 | 87.5% | |
5 | 100% | |
5 | 100% | |
6 | 112.5% | |
7 | 125% | |
8 | 150% | |
9 | 200% |
For more information on the OpenType usWidthClass value, see the "Font File Tables" section of the OpenType specification.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
