# SimpleGlyph

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

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

```rust
struct SimpleGlyph<'a>
```

A decoded simple (non-composite) glyph outline.

The default value is the empty outline, which is also what malformed or
truncated glyph data decodes to.

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

## Members

- [`end_pts_of_contours`](#function-end_pts_of_contours)
- [`instructions`](#function-instructions)
- [`flags`](#function-flags)
- [`x_coordinates`](#function-x_coordinates)
- [`y_coordinates`](#function-y_coordinates)
- [`create`](#function-create)

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

### end_pts_of_contours

```rust
fn end_pts_of_contours(self: &Self) -> &[u16]
```



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

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

### instructions

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



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

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

### flags

```rust
fn flags(self: &Self) -> &[GlyphFlag]
```



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

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

### x_coordinates

```rust
fn x_coordinates(self: &Self) -> &[i16]
```



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

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

### y_coordinates

```rust
fn y_coordinates(self: &Self) -> &[i16]
```



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

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

### create

```rust
fn create(data: &'a [u8], number_of_contours: i32) -> SimpleGlyph<'a>
```

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

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

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