FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    CmapTable

    struct · ferroui-base · v0.5.0

    struct CmapTable
    

    The cmap (character to glyph index mapping) table loader.

    View source

    Members

    TABLE_NAME

    const TABLE_NAME: &'static str
    

    Source

    TAG

    const TAG: OpenTypeTag
    

    Source

    load

    fn load(font: &dyn IFontMemory) -> Result<CharacterToGlyphMap, FontTableError>
    

    Loads the best character map of the font.

    Err when the font has no cmap table, the table is malformed or it has no format 12, 4 or 13 subtable.

    Source

    Trait implementations

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

    Availability

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