Table of Contents

Enum FontStretch

Namespace
SharpDX.DirectWrite
Assembly
SharpDX.Direct2D1.dll

Represents the degree to which a font has been stretched compared to a font's normal aspect ratio. The enumerated 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.

public enum FontStretch

Fields

Condensed = 3

Predefined font stretch : Condensed (3).

Expanded = 7

Predefined font stretch : Expanded (7).

ExtraCondensed = 2

Predefined font stretch : Extra-condensed (2).

ExtraExpanded = 8

Predefined font stretch : Extra-expanded (8).

Medium = 5

Predefined font stretch : Medium (5).

Normal = 5

Predefined font stretch : Normal (5).

SemiCondensed = 4

Predefined font stretch : Semi-condensed (4).

SemiExpanded = 6

Predefined font stretch : Semi-expanded (6).

UltraCondensed = 1

Predefined font stretch : Ultra-condensed (1).

UltraExpanded = 9

Predefined font stretch : Ultra-expanded (9).

Undefined = 0

Predefined font stretch : Not known (0).

Remarks

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 following illustration shows an example of Normal and Condensed stretches for the Rockwell Bold typeface.

Note??Values other than the ones defined in the enumeration are considered to be invalid, and are rejected by font API functions.?