Type Alias read_fonts::TTCHeader

source ·
pub type TTCHeader<'a> = TableRef<'a, TTCHeaderMarker>;
Expand description

Aliased Type§

struct TTCHeader<'a> { /* private fields */ }

Implementations§

source§

impl<'a> TTCHeader<'a>

source

pub fn ttc_tag(&self) -> Tag

Font Collection ID string: "ttcf"

source

pub fn version(&self) -> MajorMinor

Major/minor version of the TTC Header

source

pub fn num_fonts(&self) -> u32

Number of fonts in TTC

source

pub fn table_directory_offsets(&self) -> &'a [BigEndian<u32>]

Array of offsets to the TableDirectory for each font from the beginning of the file

source

pub fn dsig_tag(&self) -> Option<u32>

Tag indicating that a DSIG table exists, 0x44534947 (‘DSIG’) (null if no signature)

source

pub fn dsig_length(&self) -> Option<u32>

The length (in bytes) of the DSIG table (null if no signature)

source

pub fn dsig_offset(&self) -> Option<u32>

The offset (in bytes) of the DSIG table from the beginning of the TTC file (null if no signature)

Trait Implementations§

source§

impl<'a> Debug for TTCHeader<'a>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'a> FontRead<'a> for TTCHeader<'a>

source§

fn read(data: FontData<'a>) -> Result<Self, ReadError>

Read an instance of Self from the provided data, performing validation. Read more
source§

impl<'a> SomeTable<'a> for TTCHeader<'a>

source§

fn type_name(&self) -> &str

The name of this table
source§

fn get_field(&self, idx: usize) -> Option<Field<'a>>

Access this table’s fields, in declaration order.