Struct write_fonts::tables::cmap::SubHeader
source · pub struct SubHeader {
pub first_code: u16,
pub entry_count: u16,
pub id_delta: i16,
pub id_range_offset: u16,
}Expand description
Part of Cmap2
Fields§
§first_code: u16First valid low byte for this SubHeader.
entry_count: u16Number of valid low bytes for this SubHeader.
id_delta: i16See text below.
id_range_offset: u16See text below.
Implementations§
Trait Implementations§
source§impl FontWrite for SubHeader
impl FontWrite for SubHeader
source§fn write_into(&self, writer: &mut TableWriter)
fn write_into(&self, writer: &mut TableWriter)
Write our data and information about offsets into this TableWriter.
fn name(&self) -> &'static str
source§impl FromObjRef<SubHeader> for SubHeader
impl FromObjRef<SubHeader> for SubHeader
source§fn from_obj_ref(obj: &SubHeader, _: FontData<'_>) -> Self
fn from_obj_ref(obj: &SubHeader, _: FontData<'_>) -> Self
Convert
from to an instance of Self, using the provided data to resolve offsets.Auto Trait Implementations§
impl RefUnwindSafe for SubHeader
impl Send for SubHeader
impl Sync for SubHeader
impl Unpin for SubHeader
impl UnwindSafe for SubHeader
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere U: FromObjRef<T>,
source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.