# Panose

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

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

```rust
struct Panose
```

The PANOSE classification of a font (the ten bytes stored in the `OS/2` table).

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

## Members

- [`new`](#function-new)
- [`load`](#function-load)
- [`family_kind`](#function-family_kind)
- [`serif_style`](#function-serif_style)
- [`weight`](#function-weight)
- [`proportion`](#function-proportion)
- [`contrast`](#function-contrast)
- [`stroke_variation`](#function-stroke_variation)
- [`arm_style`](#function-arm_style)
- [`letterform`](#function-letterform)
- [`midline`](#function-midline)
- [`x_height`](#function-x_height)

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

### new

```rust
const fn new(b0: u8, b1: u8, b2: u8, b3: u8, b4: u8, b5: u8, b6: u8, b7: u8, b8: u8, b9: u8) -> Self
```



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

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

### load

```rust
fn load(reader: &mut BigEndianBinaryReader<'_>) -> Result<Panose, FontTableError>
```



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

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

### family_kind

```rust
fn family_kind(self: &Self) -> PanoseFamilyKind
```



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

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

### serif_style

```rust
fn serif_style(self: &Self) -> PanoseSerifStyle
```



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

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

### weight

```rust
fn weight(self: &Self) -> PanoseWeight
```



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

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

### proportion

```rust
fn proportion(self: &Self) -> PanoseProportion
```



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

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

### contrast

```rust
fn contrast(self: &Self) -> PanoseContrast
```



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

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

### stroke_variation

```rust
fn stroke_variation(self: &Self) -> PanoseStrokeVariation
```



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

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

### arm_style

```rust
fn arm_style(self: &Self) -> PanoseArmStyle
```



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

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

### letterform

```rust
fn letterform(self: &Self) -> PanoseLetterform
```



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

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

### midline

```rust
fn midline(self: &Self) -> PanoseMidline
```



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

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

### x_height

```rust
fn x_height(self: &Self) -> PanoseXHeight
```



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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`ResourceKeyObject`](/docs/0.5.0/api/ferroui-base/controls/trait-resourcekeyobject/)
- [`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`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`
- `Hash`
- `Default`

## Availability

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