FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    FerroShapedText

    struct · ferroui-pretext-media · v0.5.0

    struct FerroShapedText
    

    Positioned portable glyph data together with its actual native font faces.

    Native runs are already in visual order and have their horizontal baseline origins set. Keeping this value keeps their glyph typefaces alive.

    View source

    Members

    shaped_run

    fn shaped_run(self: &Self) -> &PretextShapedRun
    

    Source

    glyph_runs

    fn glyph_runs(self: &Self) -> &[Rc<GlyphRun>]
    

    Source

    into_shaped_run

    fn into_shaped_run(self: Self) -> PretextShapedRun
    

    Source

    draw

    fn draw(self: &Self, sink: &mut dyn ITextDrawingSink, foreground: Option<&Rc<dyn IBrush>>, baseline_origin: Point)
    

    Draws the retained glyph runs at the requested baseline origin.

    Source

    Trait implementations

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

    Availability

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