Struct read_fonts::tables::cmap::SubHeader
source · #[repr(C)]#[repr(packed)]pub struct SubHeader {
pub first_code: BigEndian<u16>,
pub entry_count: BigEndian<u16>,
pub id_delta: BigEndian<i16>,
pub id_range_offset: BigEndian<u16>,
}Expand description
Part of Cmap2
Fields§
§first_code: BigEndian<u16>First valid low byte for this SubHeader.
entry_count: BigEndian<u16>Number of valid low bytes for this SubHeader.
id_delta: BigEndian<i16>See text below.
id_range_offset: BigEndian<u16>See text below.
Implementations§
source§impl SubHeader
impl SubHeader
sourcepub fn first_code(&self) -> u16
pub fn first_code(&self) -> u16
First valid low byte for this SubHeader.
sourcepub fn entry_count(&self) -> u16
pub fn entry_count(&self) -> u16
Number of valid low bytes for this SubHeader.
sourcepub fn id_range_offset(&self) -> u16
pub fn id_range_offset(&self) -> u16
See text below.
Trait Implementations§
source§impl FixedSize for SubHeader
impl FixedSize for SubHeader
source§const RAW_BYTE_LEN: usize = 8usize
const RAW_BYTE_LEN: usize = 8usize
The raw size of this type, in bytes. Read more
source§impl<'a> SomeRecord<'a> for SubHeader
impl<'a> SomeRecord<'a> for SubHeader
fn traverse(self, data: FontData<'a>) -> RecordResolver<'a>
impl FromBytes for SubHeader
SAFETY: see the FromBytes trait documentation.
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