FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    GlyphDescriptor

    struct · ferroui-base · v0.5.0

    struct GlyphDescriptor
    

    The header of a glyph in the glyf table plus access to its outline.

    View source

    Members

    new

    fn new(data: ReadOnlyMemory<u8>) -> Result<Self, FontTableError>
    

    Reads the 10 byte glyph header; Err when the data is shorter.

    Source

    number_of_contours

    fn number_of_contours(self: &Self) -> i16
    

    Source

    conservative_bounds

    fn conservative_bounds(self: &Self) -> Rect
    

    Source

    is_simple_glyph

    fn is_simple_glyph(self: &Self) -> bool
    

    Source

    simple_glyph

    fn simple_glyph(self: &Self) -> SimpleGlyph<'_>
    

    Source

    composite_glyph

    fn composite_glyph(self: &Self) -> Result<CompositeGlyph<'_>, FontTableError>
    

    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

    Availability

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