# PretextShapedGlyph

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-pretext-contracts/struct-pretextshapedglyph/

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

```rust
struct PretextShapedGlyph
```



[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Pretext/FerroUI.Pretext.Contracts/text_shaping_contracts.rs#L26)

## Members

- [`glyph_id`](#struct_field-glyph_id)
- [`cluster`](#struct_field-cluster)
- [`x`](#struct_field-x)
- [`y`](#struct_field-y)
- [`x_advance`](#struct_field-x_advance)
- [`y_advance`](#struct_field-y_advance)
- [`x_offset`](#struct_field-x_offset)
- [`y_offset`](#struct_field-y_offset)
- [`font_run_index`](#struct_field-font_run_index)

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

### glyph_id

```rust
glyph_id: u32
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Pretext/FerroUI.Pretext.Contracts/text_shaping_contracts.rs#L27)

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

### cluster

```rust
cluster: usize
```

UTF-16 code-unit offset into the shaped input.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Pretext/FerroUI.Pretext.Contracts/text_shaping_contracts.rs#L29)

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

### x

```rust
x: f64
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Pretext/FerroUI.Pretext.Contracts/text_shaping_contracts.rs#L30)

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

### y

```rust
y: f64
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Pretext/FerroUI.Pretext.Contracts/text_shaping_contracts.rs#L31)

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

### x_advance

```rust
x_advance: f64
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Pretext/FerroUI.Pretext.Contracts/text_shaping_contracts.rs#L32)

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

### y_advance

```rust
y_advance: f64
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Pretext/FerroUI.Pretext.Contracts/text_shaping_contracts.rs#L33)

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

### x_offset

```rust
x_offset: f64
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Pretext/FerroUI.Pretext.Contracts/text_shaping_contracts.rs#L34)

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

### y_offset

```rust
y_offset: f64
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Pretext/FerroUI.Pretext.Contracts/text_shaping_contracts.rs#L35)

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

### font_run_index

```rust
font_run_index: usize
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Pretext/FerroUI.Pretext.Contracts/text_shaping_contracts.rs#L36)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- `Clone`
- `Copy`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`

## Availability

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