FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    HeadTable

    struct · ferroui-base · v0.5.0

    struct HeadTable
    

    The head (font header) table.

    View source

    Members

    version

    version: super::font_version::FontVersion
    

    Source

    font_revision

    font_revision: super::font_version::FontVersion
    

    Source

    check_sum_adjustment

    check_sum_adjustment: u32
    

    Source

    magic_number

    magic_number: u32
    

    Source

    flags

    flags: HeadFlags
    

    Source

    units_per_em

    units_per_em: u16
    

    Source

    created

    created: i64
    

    The creation time in ticks: 100 ns units since 0001-01-01T00:00:00 UTC, clamped to [HeadTable::DATE_TIME_MIN_TICKS, HeadTable::DATE_TIME_MAX_TICKS].

    Source

    modified

    modified: i64
    

    The modification time in ticks, see HeadTable::created.

    Source

    x_min

    x_min: i16
    

    Source

    y_min

    y_min: i16
    

    Source

    x_max

    x_max: i16
    

    Source

    y_max

    y_max: i16
    

    Source

    mac_style

    mac_style: MacStyleFlags
    

    Source

    lowest_rec_ppem

    lowest_rec_ppem: u16
    

    Source

    font_direction_hint

    font_direction_hint: FontDirectionHint
    

    Source

    index_to_loc_format

    index_to_loc_format: IndexToLocFormat
    

    Source

    glyph_data_format

    glyph_data_format: GlyphDataFormat
    

    Source

    TABLE_NAME

    const TABLE_NAME: &'static str
    

    Source

    TAG

    const TAG: OpenTypeTag
    

    Source

    DATE_TIME_MIN_TICKS

    const DATE_TIME_MIN_TICKS: i64
    

    The smallest representable timestamp (0001-01-01T00:00:00).

    Source

    DATE_TIME_MAX_TICKS

    const DATE_TIME_MAX_TICKS: i64
    

    The largest representable timestamp (9999-12-31T23:59:59.9999999).

    Source

    FONT_EPOCH_TICKS

    const FONT_EPOCH_TICKS: i64
    

    The font epoch (1904-01-01T00:00:00 UTC) in ticks.

    Source

    try_load

    fn try_load(font: &dyn IFontMemory) -> Result<Option<HeadTable>, FontTableError>
    

    Loads the table.

    Ok(None) when the font has no head table; Err when the table is present but too short.

    Source

    Trait implementations

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

    Availability

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