FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TextLineBounds

    enum · ferroui-base · v0.5.0

    enum TextLineBounds
    

    How the box of each line of text is bounded: by the ascent and the descent of its font (the default), or trimmed to the cap height above the baseline, to the baseline below it, or both.

    View source

    Members

    Full

    Full
    

    The box of a line is the ascent, the descent and the line gap of its font.

    Source

    TrimToCapHeight

    TrimToCapHeight
    

    The top of the box of a line is the cap height of its font above the baseline; the bottom is as Full has it.

    Source

    TrimToBaseline

    TrimToBaseline
    

    The bottom of the box of a line is its baseline; the top is as Full has it.

    Source

    Tight

    Tight
    

    The box of a line runs from the cap height of its font above the baseline to the baseline.

    Source

    trims_top

    fn trims_top(self: Self) -> bool
    

    Whether the top of the box of a line is the cap height above the baseline.

    Source

    trims_bottom

    fn trims_bottom(self: Self) -> bool
    

    Whether the bottom of the box of a line is the baseline.

    Source

    Trait implementations

    Availability

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