FontStretch
enum · ferroui-base · v0.5.0
enum FontStretch
Specifies the available font stretches (the OS/2 usWidthClass scale).
Members
NormalUltraCondensedExtraCondensedCondensedSemiCondensedSemiExpandedExpandedExtraExpandedUltraExpandedfrom_i32try_parse_ignore_case
Normal
Normal = 5
The normal font stretch.
UltraCondensed
UltraCondensed = 1
The ultra-condensed font stretch.
ExtraCondensed
ExtraCondensed = 2
The extra-condensed font stretch.
Condensed
Condensed = 3
The condensed font stretch.
SemiCondensed
SemiCondensed = 4
The semi-condensed font stretch.
SemiExpanded
SemiExpanded = 6
The semi-expanded font stretch.
Expanded
Expanded = 7
The expanded font stretch.
ExtraExpanded
ExtraExpanded = 8
The extra-expanded font stretch.
UltraExpanded
UltraExpanded = 9
The ultra-expanded font stretch.
from_i32
fn from_i32(value: i32) -> Option<Self>
The stretch for a width class in 1..=9 (C# (FontStretch)value).
try_parse_ignore_case
fn try_parse_ignore_case(s: &str) -> Option<Self>
Parses a stretch name, ignoring case (C# Enum.TryParse(token, true, ..)).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeResourceKeyObjectPropertyValueAnyValueClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedToStringErasedDestructorIntoEitherCloneCopyDebugDefaultStructuralPartialEqPartialEqEqHashDisplayFromStrMarkupTypedValueTypeRegistration
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.