FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    CompositeGlyph

    struct · ferroui-base · v0.5.0

    struct CompositeGlyph<'a>
    

    A decoded composite glyph: a list of component glyph references.

    View source

    Members

    components

    fn components(self: &Self) -> &[GlyphComponent]
    

    Source

    instructions

    fn instructions(self: &Self) -> &'a [u8]
    

    The glyph instructions (currently never read, always empty).

    Source

    uses_point_matching

    fn uses_point_matching(self: &Self) -> bool
    

    Whether at least one component is placed by point matching (ARGS_ARE_XY_VALUES clear).

    Source

    create

    fn create(data: &'a [u8]) -> Result<CompositeGlyph<'a>, FontTableError>
    

    Decodes the glyph body that follows the 10 byte glyph header.

    Err when the component records run past the end of the data.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ErasedDestructor
    • IntoEither
    • Clone
    • Debug
    • Default

    Availability

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