FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    VerticalHeaderTable

    struct · ferroui-base · v0.5.0

    struct VerticalHeaderTable
    

    The vhea (vertical header) table.

    View source

    Members

    version

    version: super::font_version::FontVersion
    

    Source

    advance_height_max

    advance_height_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_top_side_bearing

    min_top_side_bearing: i16
    

    Source

    min_bottom_side_bearing

    min_bottom_side_bearing: i16
    

    Source

    number_of_v_metrics

    number_of_v_metrics: u16
    

    Source

    y_max_extent

    y_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_height_max: u16, min_top_side_bearing: i16, min_bottom_side_bearing: i16, y_max_extent: i16, caret_slope_rise: i16, caret_slope_run: i16, caret_offset: i16, number_of_v_metrics: u16) -> Self
    

    Source

    try_load

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

    Loads the table.

    Ok(None) when the font has no vhea 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.