FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    FontStretch

    enum · ferroui-base · v0.5.0

    enum FontStretch
    

    Specifies the available font stretches (the OS/2 usWidthClass scale).

    View source

    Members

    Normal

    Normal = 5
    

    The normal font stretch.

    Source

    UltraCondensed

    UltraCondensed = 1
    

    The ultra-condensed font stretch.

    Source

    ExtraCondensed

    ExtraCondensed = 2
    

    The extra-condensed font stretch.

    Source

    Condensed

    Condensed = 3
    

    The condensed font stretch.

    Source

    SemiCondensed

    SemiCondensed = 4
    

    The semi-condensed font stretch.

    Source

    SemiExpanded

    SemiExpanded = 6
    

    The semi-expanded font stretch.

    Source

    Expanded

    Expanded = 7
    

    The expanded font stretch.

    Source

    ExtraExpanded

    ExtraExpanded = 8
    

    The extra-expanded font stretch.

    Source

    UltraExpanded

    UltraExpanded = 9
    

    The ultra-expanded font stretch.

    Source

    from_i32

    fn from_i32(value: i32) -> Option<Self>
    

    The stretch for a width class in 1..=9 (C# (FontStretch)value).

    Source

    try_parse_ignore_case

    fn try_parse_ignore_case(s: &str) -> Option<Self>
    

    Parses a stretch name, ignoring case (C# Enum.TryParse(token, true, ..)).

    Source

    Trait implementations

    Availability

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