pub struct LocaTable<'a> {
pub offsets: LocaOffsets<'a>,
}
Expand description
Fields
offsets: LocaOffsets<'a>
Implementations
Trait Implementations
sourceimpl<'a> ReadBinaryDep<'a> for LocaTable<'a>
impl<'a> ReadBinaryDep<'a> for LocaTable<'a>
sourcefn read_dep(
ctxt: &mut ReadCtxt<'a>,
(num_glyphs, index_to_loc_format): (usize, IndexToLocFormat)
) -> Result<Self, ParseError>
fn read_dep(
ctxt: &mut ReadCtxt<'a>,
(num_glyphs, index_to_loc_format): (usize, IndexToLocFormat)
) -> Result<Self, ParseError>
Read a loca
table from ctxt
num_glyphs
is the number of glyphs in the font. The value fornum_glyphs
is found in the ‘maxp’ table.index_to_loc_format
specifies whether the offsets in theloca
table are short or long. This value can be read from thehead
table.
type Args = (usize, IndexToLocFormat)
type HostType = LocaTable<'a>
sourceimpl<'a> WriteBinary<LocaTable<'a>> for LocaTable<'a>
impl<'a> WriteBinary<LocaTable<'a>> for LocaTable<'a>
sourcefn write<C: WriteContext>(
ctxt: &mut C,
loca: LocaTable<'a>
) -> Result<(), WriteError>
fn write<C: WriteContext>(
ctxt: &mut C,
loca: LocaTable<'a>
) -> Result<(), WriteError>
Write the binary representation of Self to
ctxt
.Auto Trait Implementations
impl<'a> RefUnwindSafe for LocaTable<'a>
impl<'a> Send for LocaTable<'a>
impl<'a> Sync for LocaTable<'a>
impl<'a> Unpin for LocaTable<'a>
impl<'a> UnwindSafe for LocaTable<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T, HostType> WriteBinaryDep<HostType> for Twhere
T: WriteBinary<HostType>,
impl<T, HostType> WriteBinaryDep<HostType> for Twhere
T: WriteBinary<HostType>,
type Output = <T as WriteBinary<HostType>>::Output
type Output = <T as WriteBinary<HostType>>::Output
The type of the value returned by
write_dep
.sourcefn write_dep<C>(
ctxt: &mut C,
val: HostType,
<T as WriteBinaryDep<HostType>>::Args
) -> Result<<T as WriteBinaryDep<HostType>>::Output, WriteError>where
C: WriteContext,
fn write_dep<C>(
ctxt: &mut C,
val: HostType,
<T as WriteBinaryDep<HostType>>::Args
) -> Result<<T as WriteBinaryDep<HostType>>::Output, WriteError>where
C: WriteContext,
Write the binary representation of Self to
ctxt
.