FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    OS2Table

    struct · ferroui-base · v0.5.0

    struct OS2Table
    

    The OS/2 (OS/2 and Windows metrics) table.

    View source

    Members

    version

    version: u16
    

    Source

    x_avg_char_width

    x_avg_char_width: i16
    

    Source

    weight_class

    weight_class: u16
    

    Source

    width_class

    width_class: u16
    

    Source

    fs_type

    fs_type: u16
    

    Source

    y_subscript_x_size

    y_subscript_x_size: i16
    

    Source

    y_subscript_y_size

    y_subscript_y_size: i16
    

    Source

    y_subscript_x_offset

    y_subscript_x_offset: i16
    

    Source

    y_subscript_y_offset

    y_subscript_y_offset: i16
    

    Source

    y_superscript_x_size

    y_superscript_x_size: i16
    

    Source

    y_superscript_y_size

    y_superscript_y_size: i16
    

    Source

    y_superscript_x_offset

    y_superscript_x_offset: i16
    

    Source

    y_superscript_y_offset

    y_superscript_y_offset: i16
    

    Source

    strikeout_size

    strikeout_size: i16
    

    Source

    strikeout_position

    strikeout_position: i16
    

    Source

    family_class

    family_class: i16
    

    Source

    panose

    panose: super::panose::Panose
    

    Source

    unicode_range1

    unicode_range1: u32
    

    Source

    unicode_range2

    unicode_range2: u32
    

    Source

    unicode_range3

    unicode_range3: u32
    

    Source

    unicode_range4

    unicode_range4: u32
    

    Source

    vendor_id

    vendor_id: u32
    

    Source

    selection

    selection: FontSelectionFlags
    

    Source

    first_char_index

    first_char_index: u16
    

    Source

    last_char_index

    last_char_index: u16
    

    Source

    typo_ascender

    typo_ascender: i16
    

    Source

    typo_descender

    typo_descender: i16
    

    Source

    typo_line_gap

    typo_line_gap: i16
    

    Source

    win_ascent

    win_ascent: u16
    

    Source

    win_descent

    win_descent: u16
    

    Source

    code_page_range1

    code_page_range1: u32
    

    Source

    code_page_range2

    code_page_range2: u32
    

    Source

    x_height

    x_height: i16
    

    Source

    cap_height

    cap_height: i16
    

    Source

    default_char

    default_char: u16
    

    Source

    break_char

    break_char: u16
    

    Source

    max_context

    max_context: u16
    

    Source

    lower_optical_point_size

    lower_optical_point_size: u16
    

    Source

    upper_optical_point_size

    upper_optical_point_size: u16
    

    Source

    TABLE_NAME

    const TABLE_NAME: &'static str
    

    Source

    TAG

    const TAG: OpenTypeTag
    

    Source

    try_load

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

    Loads the table.

    Ok(None) when the font has no OS/2 table; Err when the table is present but too short for its version.

    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.