# GlyphMetrics

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

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

```rust
struct GlyphMetrics
```

Represents the metrics for a single glyph in design units.

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

## Members

- [`x_bearing`](#struct_field-x_bearing)
- [`y_bearing`](#struct_field-y_bearing)
- [`width`](#struct_field-width)
- [`height`](#struct_field-height)
- [`advance_width`](#struct_field-advance_width)
- [`advance_height`](#struct_field-advance_height)
- [`x_offset`](#struct_field-x_offset)
- [`y_offset`](#struct_field-y_offset)
- [`vertical_origin_x`](#struct_field-vertical_origin_x)
- [`vertical_origin_y`](#struct_field-vertical_origin_y)

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

### x_bearing

```rust
x_bearing: i32
```

Distance from the x-origin to the left extremum of the glyph.

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

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

### y_bearing

```rust
y_bearing: i32
```

Distance from the top extremum of the glyph to the y-origin.

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

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

### width

```rust
width: u16
```

Distance from the left extremum of the glyph to the right extremum.

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

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

### height

```rust
height: u16
```

Distance from the top extremum of the glyph to the bottom extremum.

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

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

### advance_width

```rust
advance_width: u16
```

The horizontal advance of the glyph.

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

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

### advance_height

```rust
advance_height: u16
```

The vertical advance of the glyph.

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

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

### x_offset

```rust
x_offset: u16
```

The horizontal offset of the glyph.

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

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

### y_offset

```rust
y_offset: u16
```

The vertical offset of the glyph.

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

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

### vertical_origin_x

```rust
vertical_origin_x: u16
```

The x coordinate of the vertical origin.

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

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

### vertical_origin_y

```rust
vertical_origin_y: u16
```

The y coordinate of the vertical origin.

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

## 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/).
