XRFontStretch (Windows Embedded CE 6.0)
1/6/2010
This enumeration contains values that each describe how much a font is expanded or condensed, compared to the usual aspect-ratio of that font.
Syntax
enum XRFontStretch{
XRFontStretch_UltraCondensed=1,
XRFontStretch_ExtraCondensed=2,
XRFontStretch_Condensed=3,
XRFontStretch_SemiCondensed=4,
XRFontStretch_Normal=5,
XRFontStretch_Medium=5,
XRFontStretch_SemiExpanded=6,
XRFontStretch_Expanded=7,
XRFontStretch_ExtraExpanded=8,
XRFontStretch_UltraExpanded=9
};
Members
Member | usWidthClass | Description |
---|---|---|
XRFontStretch_UltraCondensed |
1 |
Indicates that the font is condensed to 50.0% of its usual width-to-height ratio. |
XRFontStretch_ExtraCondensed |
2 |
Indicates that the font is condensed to 62.5% of its usual width-to-height ratio. |
XRFontStretch_Condensed |
3 |
Indicates that the font is condensed to 75.0% of its usual width-to-height ratio. |
XRFontStretch_SemiCondensed |
4 |
Indicates that the font is condensed to 87.5% of its usual width-to-height ratio. |
XRFontStretch_Normal |
5 |
Indicates that the font is displayed at its usual width-to-height ratio. |
XRFontStretch_Medium |
5 |
Indicates that the font is displayed at its usual width-to-height ratio. |
XRFontStretch_SemiExpanded |
6 |
Indicates that the font is expanded to 112.5% of its usual width-to-height ratio. |
XRFontStretch_Expanded |
7 |
Indicates that the font is expanded to 125.0% of its usual width-to-height ratio. |
XRFontStretch_ExtraExpanded |
8 |
Indicates that the font is expanded to 150.0% of its usual width-to-height ratio. |
XRFontStretch_UltraExpanded |
9 |
Indicates that the font is expanded to 200.0% of its usual width-to-height ratio. |
Remarks
A font stretch describes how much a font glyph is stretched or contracted from its original aspect ratio. Aspect ratio is the width-to-height ratio specified for the glyphs in the font.
The members of XRFontStretch 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.
.NET Framework Equivalent
System.Windows.FontStretches
Requirements
Header | XamlRuntime.h |
sysgen | SYSGEN_XAML_RUNTIME |
Windows Embedded CE | Windows Embedded CE 6.0 R3 |