FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    FontVersion

    struct · ferroui-base · v0.5.0

    struct FontVersion
    

    Represents a Version16Dot16 value from OpenType font tables. The high 16 bits represent the major version, and the low 16 bits represent the minor version as a fraction.

    View source

    Members

    major

    major: u16
    

    The major version number.

    Source

    minor

    minor: u16
    

    The minor version number (as a fraction of 65536).

    Source

    new

    const fn new(value: u32) -> Self
    

    Creates the version from a raw 32-bit Version16Dot16 value.

    Source

    from_parts

    const fn from_parts(major: u16, minor: u16) -> Self
    

    Creates the version from major and minor components.

    Source

    to_float

    fn to_float(self: &Self) -> f32
    

    Converts the version to a floating-point representation.

    Source

    to_uint32

    const fn to_uint32(self: &Self) -> u32
    

    Returns the raw 32-bit Version16Dot16 value.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • ResourceKeyObject
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ToString
    • ErasedDestructor
    • IntoEither
    • Clone
    • Copy
    • Debug
    • StructuralPartialEq
    • PartialEq
    • Eq
    • Hash
    • Default
    • Display
    • From<FontVersion>

    Availability

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