FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TextLineMetricsMode

    enum · ferroui-base · v0.5.0

    enum TextLineMetricsMode
    

    Chooses the font metrics that contribute to a paragraph's line boxes.

    View source

    Members

    GlyphTypeface

    GlyphTypeface
    

    Use each actual glyph typeface, splitting its line gap above and below the baseline. This is the default behavior of the shared formatter.

    Source

    FontFamily

    FontFamily
    

    Use the regular face of each originally requested font family. Glyph fallback does not change its line box; its line gap lies below the baseline, and TextLineBounds is applied before combining runs. Drawable objects contribute their full height and baseline independently.

    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
    • Eq

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.