FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    baseline

    baseline: f64
    

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

    Source

    height

    height: f64
    

    Height of the bounded line box.

    Source

    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.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • PropertyValue
    • AnyValue
    • 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.