# CompositeGlyph

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/media/fonts/tables/glyf/struct-compositeglyph/

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

```rust
struct CompositeGlyph<'a>
```

A decoded composite glyph: a list of component glyph references.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/fonts/tables/glyf/composite_glyph.rs#L11)

## Members

- [`components`](#function-components)
- [`instructions`](#function-instructions)
- [`uses_point_matching`](#function-uses_point_matching)
- [`create`](#function-create)

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

### components

```rust
fn components(self: &Self) -> &[GlyphComponent]
```



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

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

### instructions

```rust
fn instructions(self: &Self) -> &'a [u8]
```

The glyph instructions (currently never read, always empty).

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

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

### uses_point_matching

```rust
fn uses_point_matching(self: &Self) -> bool
```

Whether at least one component is placed by point matching
(`ARGS_ARE_XY_VALUES` clear).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/fonts/tables/glyf/composite_glyph.rs#L29)

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

### create

```rust
fn create(data: &'a [u8]) -> Result<CompositeGlyph<'a>, FontTableError>
```

Decodes the glyph body that follows the 10 byte glyph header.

`Err` when the component records run past the end of the data.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/fonts/tables/glyf/composite_glyph.rs#L36)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`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`
- `Debug`
- `Default`

## Availability

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