FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    GlyphMetrics

    struct · ferroui-base · v0.5.0

    struct GlyphMetrics
    

    Represents the metrics for a single glyph in design units.

    View source

    Members

    x_bearing

    x_bearing: i32
    

    Distance from the x-origin to the left extremum of the glyph.

    Source

    y_bearing

    y_bearing: i32
    

    Distance from the top extremum of the glyph to the y-origin.

    Source

    width

    width: u16
    

    Distance from the left extremum of the glyph to the right extremum.

    Source

    height

    height: u16
    

    Distance from the top extremum of the glyph to the bottom extremum.

    Source

    advance_width

    advance_width: u16
    

    The horizontal advance of the glyph.

    Source

    advance_height

    advance_height: u16
    

    The vertical advance of the glyph.

    Source

    x_offset

    x_offset: u16
    

    The horizontal offset of the glyph.

    Source

    y_offset

    y_offset: u16
    

    The vertical offset of the glyph.

    Source

    vertical_origin_x

    vertical_origin_x: u16
    

    The x coordinate of the vertical origin.

    Source

    vertical_origin_y

    vertical_origin_y: u16
    

    The y coordinate of the vertical origin.

    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.