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.
Members
major
major: u16
The major version number.
minor
minor: u16
The minor version number (as a fraction of 65536).
new
const fn new(value: u32) -> Self
Creates the version from a raw 32-bit Version16Dot16 value.
from_parts
const fn from_parts(major: u16, minor: u16) -> Self
Creates the version from major and minor components.
to_float
fn to_float(self: &Self) -> f32
Converts the version to a floating-point representation.
to_uint32
const fn to_uint32(self: &Self) -> u32
Returns the raw 32-bit Version16Dot16 value.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeResourceKeyObjectPropertyValueAnyValueClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedToStringErasedDestructorIntoEitherCloneCopyDebugStructuralPartialEqPartialEqEqHashDefaultDisplayFrom<FontVersion>
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.