# TextLineMetricsMode

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

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

```rust
enum TextLineMetricsMode
```

Chooses the font metrics that contribute to a paragraph's line boxes.

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

## Members

- [`GlyphTypeface`](#variant-glyphtypeface)
- [`FontFamily`](#variant-fontfamily)

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

### GlyphTypeface

```rust
GlyphTypeface
```

Use each actual glyph typeface, splitting its line gap above and below
the baseline. This is the default behavior of the shared formatter.

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

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

### FontFamily

```rust
FontFamily
```

Use the regular face of each originally requested font family. Glyph
fallback does not change its line box; its line gap lies below the
baseline, and TextLineBounds is applied before combining runs. Drawable
objects contribute their full height and baseline independently.

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`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`
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `Copy`
- `Debug`
- `Default`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`

## Availability

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