FontFamilyLineMetrics
struct · ferroui-base · v0.5.0
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.
Members
baseline
baseline: f64
Distance from the top of the bounded line box to the baseline.
height
height: f64
Height of the bounded line box.
new
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.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafePropertyValueAnyValueClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedErasedDestructorIntoEitherCloneCopyDebugDefaultStructuralPartialEqPartialEq
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.