Type Alias read_fonts::tables::cff2::Cff2Header
source · pub type Cff2Header<'a> = TableRef<'a, Cff2HeaderMarker>;
Expand description
Compact Font Format (CFF) version 2 table header
Aliased Type§
struct Cff2Header<'a> { /* private fields */ }
Implementations§
source§impl<'a> Cff2Header<'a>
impl<'a> Cff2Header<'a>
sourcepub fn major_version(&self) -> u8
pub fn major_version(&self) -> u8
Format major version (set to 2).
sourcepub fn minor_version(&self) -> u8
pub fn minor_version(&self) -> u8
Format minor version (set to 0).
sourcepub fn header_size(&self) -> u8
pub fn header_size(&self) -> u8
Header size (bytes).
sourcepub fn top_dict_length(&self) -> u16
pub fn top_dict_length(&self) -> u16
Length of Top DICT structure in bytes.
sourcepub fn top_dict_data(&self) -> &'a [u8] ⓘ
pub fn top_dict_data(&self) -> &'a [u8] ⓘ
Data containing the Top DICT.
sourcepub fn trailing_data(&self) -> &'a [u8] ⓘ
pub fn trailing_data(&self) -> &'a [u8] ⓘ
Remaining table data.