FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    LocaTable

    struct · ferroui-base · v0.5.0

    struct LocaTable
    

    The loca (index to location) table: the offsets of the glyphs in the glyf table.

    View source

    Members

    TABLE_NAME

    const TABLE_NAME: &'static str
    

    Source

    TAG

    const TAG: OpenTypeTag
    

    Source

    glyph_count

    fn glyph_count(self: &Self) -> i32
    

    Source

    load

    fn load(font: &dyn IFontMemory, head: &HeadTable, maxp: &MaxpTable) -> Option<LocaTable>
    

    Loads the table; None when the font has no loca table.

    Source

    try_get_offsets

    fn try_get_offsets(self: &Self, glyph_index: i32) -> Option<(i32, i32)>
    

    The (start, end) offsets of the glyph's data in the glyf table; None when the glyph index is out of range.

    Source

    Trait implementations

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

    Availability

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