FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    HorizontalHeaderTable

    struct · ferroui-base · v0.5.0

    struct HorizontalHeaderTable
    

    The hhea (horizontal header) table.

    View source

    Members

    version

    version: super::font_version::FontVersion
    

    Source

    advance_width_max

    advance_width_max: u16
    

    Source

    ascender

    ascender: i16
    

    Source

    caret_offset

    caret_offset: i16
    

    Source

    caret_slope_rise

    caret_slope_rise: i16
    

    Source

    caret_slope_run

    caret_slope_run: i16
    

    Source

    descender

    descender: i16
    

    Source

    line_gap

    line_gap: i16
    

    Source

    min_left_side_bearing

    min_left_side_bearing: i16
    

    Source

    min_right_side_bearing

    min_right_side_bearing: i16
    

    Source

    number_of_h_metrics

    number_of_h_metrics: u16
    

    Source

    x_max_extent

    x_max_extent: i16
    

    Source

    TABLE_NAME

    const TABLE_NAME: &'static str
    

    Source

    TAG

    const TAG: OpenTypeTag
    

    Source

    new

    const fn new(version: FontVersion, ascender: i16, descender: i16, line_gap: i16, advance_width_max: u16, min_left_side_bearing: i16, min_right_side_bearing: i16, x_max_extent: i16, caret_slope_rise: i16, caret_slope_run: i16, caret_offset: i16, number_of_h_metrics: u16) -> Self
    

    Source

    try_load

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

    Loads the table.

    Ok(None) when the font has no hhea table or its metric data format is not 0; 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
    • Default

    Availability

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