# FontFamilyLineMetrics

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/media/text_formatting/struct-fontfamilylinemetrics/

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

```rust
struct FontFamilyLineMetrics
```

The line box of the regular face of a requested font family.

These are layout metrics. The actual glyph typeface still supplies glyphs,
ink bounds and decoration metrics. The family baseline excludes the line
gap; the gap belongs below the baseline until the bottom is trimmed.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/text_formatting/font_family_line_metrics.rs#L9)

## Members

- [`baseline`](#struct_field-baseline)
- [`height`](#struct_field-height)
- [`new`](#function-new)

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

### baseline

```rust
baseline: f64
```

Distance from the top of the bounded line box to the baseline.

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

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

### height

```rust
height: f64
```

Height of the bounded line box.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/text_formatting/font_family_line_metrics.rs#L13)

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

### new

```rust
fn new(font_family: &FontFamily, font_rendering_em_size: f64, text_line_bounds: TextLineBounds) -> Self
```

Resolves the regular face of `font_family` through the font manager and
bounds its metrics at `font_rendering_em_size`.

Family lookup and missing cap-height behavior follow the font manager
and `crate::media::GlyphTypeface`, including their font fallback.

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

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

## Availability

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