LocaTable
struct · ferroui-base · v0.5.0
struct LocaTable
The loca (index to location) table: the offsets of the glyphs in the
glyf table.
Members
TABLE_NAME
const TABLE_NAME: &'static str
TAG
const TAG: OpenTypeTag
glyph_count
fn glyph_count(self: &Self) -> i32
load
fn load(font: &dyn IFontMemory, head: &HeadTable, maxp: &MaxpTable) -> Option<LocaTable>
Loads the table; None when the font has no loca table.
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.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedErasedDestructorIntoEitherCloneDebug
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.