FontStretch Structure
Assembly: PresentationCore (in presentationcore.dll)
XML Namespace: http://schemas.microsoft.com/winfx/2006/xaml/presentation
[TypeConverterAttribute(typeof(FontStretchConverter))] [LocalizabilityAttribute(LocalizationCategory.None)] public struct FontStretch : IFormattable
/** @attribute TypeConverterAttribute(System.Windows.FontStretchConverter) */ /** @attribute LocalizabilityAttribute(LocalizationCategory.None) */ public final class FontStretch extends ValueType implements IFormattable
<object fontStretchesProperty="fontStretchesValue"/>
fontStretchesValue A FontStretches value, such as "Condensed", "Normal", or "Expanded".
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.
An example of Normal and Condensed font stretches for the "Rockwell Bold" typeface
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.
| Font stretch | usWidthClass | % of normal |
|---|---|---|
| 1 | 50.0% | |
| 2 | 62.5% | |
| 3 | 75.0% | |
| 4 | 87.5% | |
| 5 | 100.0% | |
| 6 | 112.5% | |
| 7 | 125.0% | |
| 8 | 150.0% | |
| 9 | 200.0% |
For more information on the OpenTypeusWidthClass value, see the "Font File Tables" section of the OpenType specification.
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.