Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
Silverlight
System.Windows
FontStretches Class
Collapse All/Expand All Collapse All
.NET Framework Class Library for Silverlight
FontStretches Class

Provides a set of predefined font stretches as static property values.

System..::.Object
  System.Windows..::.FontStretches

Namespace:  System.Windows
Assembly:  System.Windows (in System.Windows.dll)
Visual Basic (Declaration)
Public NotInheritable Class FontStretches
C#
public static class FontStretches
XAML

See Remarks.

The FontStretches type exposes the following members.

  NameDescription
Public propertyStatic memberSupported by Silverlight for Windows PhoneCondensedSpecifies a condensed font stretch.
Public propertyStatic memberSupported by Silverlight for Windows PhoneExpandedSpecifies an expanded font stretch.
Public propertyStatic memberSupported by Silverlight for Windows PhoneExtraCondensedSpecifies an extra-condensed font stretch.
Public propertyStatic memberSupported by Silverlight for Windows PhoneExtraExpandedSpecifies an extra-expanded font stretch.
Public propertyStatic memberSupported by Silverlight for Windows PhoneNormalSpecifies a normal font stretch.
Public propertyStatic memberSupported by Silverlight for Windows PhoneSemiCondensedSpecifies a semi-condensed font stretch.
Public propertyStatic memberSupported by Silverlight for Windows PhoneSemiExpandedSpecifies a semi-expanded font stretch.
Public propertyStatic memberSupported by Silverlight for Windows PhoneUltraCondensedSpecifies an ultra-condensed font stretch.
Public propertyStatic memberSupported by Silverlight for Windows PhoneUltraExpandedSpecifies an ultra-expanded font stretch.
Top

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.

FontStretches Static Property Names

Font stretch

usWidthClass

% of normal

UltraCondensed

1

50%

ExtraCondensed

2

62.5%

Condensed

3

75%

SemiCondensed

4

87.5%

Normal

5

100%

SemiExpanded

6

112.5%

Expanded

7

125%

ExtraExpanded

8

150%

UltraExpanded

9

200%

For more information on XAML usage, see FontStretch. FontStretch is the value type for Silverlight properties or attributes that specify a font stretches value, but you must use static properties of FontStretches to provide 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.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2012 Microsoft. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker