FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TextShaperOptions

    struct · ferroui-base · v0.5.0

    struct TextShaperOptions
    

    Options to customize text shaping.

    View source

    Members

    new

    fn new(typeface: Rc<GlyphTypeface>) -> Self
    

    Creates options with the default em size, bidi level 0 and no culture, tab width, letter spacing or features.

    Source

    with_all

    fn with_all(typeface: Rc<GlyphTypeface>, font_rendering_em_size: f64, bidi_level: i8, culture: Option<Locale>, incremental_tab_width: f64, letter_spacing: f64, font_features: Option<Rc<Vec<FontFeature>>>) -> Self
    

    Creates options with every value specified.

    Source

    glyph_typeface

    fn glyph_typeface(self: &Self) -> &Rc<GlyphTypeface>
    

    Get the typeface.

    Source

    font_rendering_em_size

    fn font_rendering_em_size(self: &Self) -> f64
    

    Get the font rendering em size.

    Source

    bidi_level

    fn bidi_level(self: &Self) -> i8
    

    Get the bidi level of the text.

    Source

    culture

    fn culture(self: &Self) -> Option<&Locale>
    

    Get the culture.

    Source

    incremental_tab_width

    fn incremental_tab_width(self: &Self) -> f64
    

    Get the incremental tab width.

    Source

    letter_spacing

    fn letter_spacing(self: &Self) -> f64
    

    Get the letter spacing.

    Source

    font_features

    fn font_features(self: &Self) -> Option<&Rc<Vec<FontFeature>>>
    

    Get features.

    Source

    produce_concat_flags

    fn produce_concat_flags(self: &Self) -> bool
    

    Whether the shaper records the concatenation flags of the glyphs it makes.

    Source

    with_concat_flags

    fn with_concat_flags(self: Self, produce: bool) -> Self
    

    These options, with the shaper recording the concatenation flags of the glyphs it makes or not.

    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

    Availability

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