# HeadTable

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

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

```rust
struct HeadTable
```

The `head` (font header) table.

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

## Members

- [`version`](#struct_field-version)
- [`font_revision`](#struct_field-font_revision)
- [`check_sum_adjustment`](#struct_field-check_sum_adjustment)
- [`magic_number`](#struct_field-magic_number)
- [`flags`](#struct_field-flags)
- [`units_per_em`](#struct_field-units_per_em)
- [`created`](#struct_field-created)
- [`modified`](#struct_field-modified)
- [`x_min`](#struct_field-x_min)
- [`y_min`](#struct_field-y_min)
- [`x_max`](#struct_field-x_max)
- [`y_max`](#struct_field-y_max)
- [`mac_style`](#struct_field-mac_style)
- [`lowest_rec_ppem`](#struct_field-lowest_rec_ppem)
- [`font_direction_hint`](#struct_field-font_direction_hint)
- [`index_to_loc_format`](#struct_field-index_to_loc_format)
- [`glyph_data_format`](#struct_field-glyph_data_format)
- [`TABLE_NAME`](#assoc_const-table_name)
- [`TAG`](#assoc_const-tag)
- [`DATE_TIME_MIN_TICKS`](#assoc_const-date_time_min_ticks)
- [`DATE_TIME_MAX_TICKS`](#assoc_const-date_time_max_ticks)
- [`FONT_EPOCH_TICKS`](#assoc_const-font_epoch_ticks)
- [`try_load`](#function-try_load)

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

### version

```rust
version: super::font_version::FontVersion
```



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

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

### font_revision

```rust
font_revision: super::font_version::FontVersion
```



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

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

### check_sum_adjustment

```rust
check_sum_adjustment: u32
```



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

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

### magic_number

```rust
magic_number: u32
```



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

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

### flags

```rust
flags: HeadFlags
```



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

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

### units_per_em

```rust
units_per_em: u16
```



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

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

### created

```rust
created: i64
```

The creation time in ticks: 100 ns units since 0001-01-01T00:00:00 UTC,
clamped to [`HeadTable::DATE_TIME_MIN_TICKS`, `HeadTable::DATE_TIME_MAX_TICKS`].

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

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

### modified

```rust
modified: i64
```

The modification time in ticks, see `HeadTable::created`.

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

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

### x_min

```rust
x_min: i16
```



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

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

### y_min

```rust
y_min: i16
```



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

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

### x_max

```rust
x_max: i16
```



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

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

### y_max

```rust
y_max: i16
```



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

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

### mac_style

```rust
mac_style: MacStyleFlags
```



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

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

### lowest_rec_ppem

```rust
lowest_rec_ppem: u16
```



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

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

### font_direction_hint

```rust
font_direction_hint: FontDirectionHint
```



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

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

### index_to_loc_format

```rust
index_to_loc_format: IndexToLocFormat
```



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

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

### glyph_data_format

```rust
glyph_data_format: GlyphDataFormat
```



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

<a id="assoc_const-table_name"></a>

### TABLE_NAME

```rust
const TABLE_NAME: &'static str
```



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

<a id="assoc_const-tag"></a>

### TAG

```rust
const TAG: OpenTypeTag
```



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

<a id="assoc_const-date_time_min_ticks"></a>

### DATE_TIME_MIN_TICKS

```rust
const DATE_TIME_MIN_TICKS: i64
```

The smallest representable timestamp (0001-01-01T00:00:00).

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

<a id="assoc_const-date_time_max_ticks"></a>

### DATE_TIME_MAX_TICKS

```rust
const DATE_TIME_MAX_TICKS: i64
```

The largest representable timestamp (9999-12-31T23:59:59.9999999).

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

<a id="assoc_const-font_epoch_ticks"></a>

### FONT_EPOCH_TICKS

```rust
const FONT_EPOCH_TICKS: i64
```

The font epoch (1904-01-01T00:00:00 UTC) in ticks.

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

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

### try_load

```rust
fn try_load(font: &dyn IFontMemory) -> Result<Option<HeadTable>, FontTableError>
```

Loads the table.

`Ok(None)` when the font has no `head` table; `Err` when the table is
present but too short.

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

## 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`
- `StructuralPartialEq`
- `PartialEq`

## Availability

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