# GlyphRunMetrics

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/media/struct-glyphrunmetrics/

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

```rust
struct GlyphRunMetrics
```

Describes the metrics of a glyph run.

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

## Members

- [`baseline`](#struct_field-baseline)
- [`width`](#struct_field-width)
- [`width_including_trailing_whitespace`](#struct_field-width_including_trailing_whitespace)
- [`height`](#struct_field-height)
- [`trailing_whitespace_length`](#struct_field-trailing_whitespace_length)
- [`new_line_length`](#struct_field-new_line_length)
- [`first_cluster`](#struct_field-first_cluster)
- [`last_cluster`](#struct_field-last_cluster)

<a id="struct_field-baseline"></a>

### baseline

```rust
baseline: f64
```

The baseline of the run.

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

<a id="struct_field-width"></a>

### width

```rust
width: f64
```

The width of the run without trailing whitespace.

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

<a id="struct_field-width_including_trailing_whitespace"></a>

### width_including_trailing_whitespace

```rust
width_including_trailing_whitespace: f64
```

The width of the run including trailing whitespace.

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

<a id="struct_field-height"></a>

### height

```rust
height: f64
```

The height of the run.

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

<a id="struct_field-trailing_whitespace_length"></a>

### trailing_whitespace_length

```rust
trailing_whitespace_length: i32
```

The number of trailing whitespace characters (UTF-16 code units).

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

<a id="struct_field-new_line_length"></a>

### new_line_length

```rust
new_line_length: i32
```

The number of trailing line break characters (UTF-16 code units).

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

<a id="struct_field-first_cluster"></a>

### first_cluster

```rust
first_cluster: i32
```

The first cluster of the run.

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

<a id="struct_field-last_cluster"></a>

### last_cluster

```rust
last_cluster: i32
```

The last cluster of the run.

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

## 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`

## Availability

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