# FontStretch

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/media/enum-fontstretch/

**enum** · [`ferroui-base`](/docs/0.5.0/api/ferroui-base/) · v0.5.0

```rust
enum FontStretch
```

Specifies the available font stretches (the OS/2 `usWidthClass` scale).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/font_stretch.rs#L9)

## Members

- [`Normal`](#variant-normal)
- [`UltraCondensed`](#variant-ultracondensed)
- [`ExtraCondensed`](#variant-extracondensed)
- [`Condensed`](#variant-condensed)
- [`SemiCondensed`](#variant-semicondensed)
- [`SemiExpanded`](#variant-semiexpanded)
- [`Expanded`](#variant-expanded)
- [`ExtraExpanded`](#variant-extraexpanded)
- [`UltraExpanded`](#variant-ultraexpanded)
- [`from_i32`](#function-from_i32)
- [`try_parse_ignore_case`](#function-try_parse_ignore_case)

<a id="variant-normal"></a>

### Normal

```rust
Normal = 5
```

The normal font stretch.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/font_stretch.rs#L12)

<a id="variant-ultracondensed"></a>

### UltraCondensed

```rust
UltraCondensed = 1
```

The ultra-condensed font stretch.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/font_stretch.rs#L14)

<a id="variant-extracondensed"></a>

### ExtraCondensed

```rust
ExtraCondensed = 2
```

The extra-condensed font stretch.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/font_stretch.rs#L16)

<a id="variant-condensed"></a>

### Condensed

```rust
Condensed = 3
```

The condensed font stretch.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/font_stretch.rs#L18)

<a id="variant-semicondensed"></a>

### SemiCondensed

```rust
SemiCondensed = 4
```

The semi-condensed font stretch.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/font_stretch.rs#L20)

<a id="variant-semiexpanded"></a>

### SemiExpanded

```rust
SemiExpanded = 6
```

The semi-expanded font stretch.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/font_stretch.rs#L22)

<a id="variant-expanded"></a>

### Expanded

```rust
Expanded = 7
```

The expanded font stretch.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/font_stretch.rs#L24)

<a id="variant-extraexpanded"></a>

### ExtraExpanded

```rust
ExtraExpanded = 8
```

The extra-expanded font stretch.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/font_stretch.rs#L26)

<a id="variant-ultraexpanded"></a>

### UltraExpanded

```rust
UltraExpanded = 9
```

The ultra-expanded font stretch.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/font_stretch.rs#L28)

<a id="function-from_i32"></a>

### from_i32

```rust
fn from_i32(value: i32) -> Option<Self>
```

The stretch for a width class in `1..=9` (C# `(FontStretch)value`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/font_stretch.rs#L45)

<a id="function-try_parse_ignore_case"></a>

### try_parse_ignore_case

```rust
fn try_parse_ignore_case(s: &str) -> Option<Self>
```

Parses a stretch name, ignoring case (C# `Enum.TryParse(token, true, ..)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/font_stretch.rs#L50)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`ResourceKeyObject`](/docs/0.5.0/api/ferroui-base/controls/trait-resourcekeyobject/)
- [`PropertyValue`](/docs/0.5.0/api/ferroui-base/trait-propertyvalue/)
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- `ToString`
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `Copy`
- `Debug`
- `Default`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`
- `Hash`
- `Display`
- `FromStr`
- [`MarkupTyped`](/docs/0.5.0/api/ferroui-base/metadata/trait-markuptyped/)
- [`ValueTypeRegistration`](/docs/0.5.0/api/ferroui-base/data/core/trait-valuetyperegistration/)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
