FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    GlyphInfo

    struct · ferroui-base · v0.5.0

    struct GlyphInfo
    

    Represents a single glyph.

    View source

    Members

    glyph_index

    glyph_index: u16
    

    The index of the glyph in the associated font.

    Source

    glyph_cluster

    glyph_cluster: i32
    

    The index (UTF-16 code unit, relative to the shaped text) of the first character that was used to create this glyph.

    Source

    glyph_advance

    glyph_advance: f64
    

    The glyph advance.

    Source

    glyph_offset

    glyph_offset: crate::Vector
    

    The glyph offset.

    Source

    new

    const fn new(glyph_index: u16, glyph_cluster: i32, glyph_advance: f64) -> Self
    

    Source

    with_offset

    const fn with_offset(glyph_index: u16, glyph_cluster: i32, glyph_advance: f64, glyph_offset: Vector) -> Self
    

    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.