Type Alias read_fonts::tables::gasp::Gasp

source ·
pub type Gasp<'a> = TableRef<'a, GaspMarker>;
Expand description

Aliased Type§

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

Implementations§

source§

impl<'a> Gasp<'a>

source

pub fn version(&self) -> u16

Version number (set to 1)

source

pub fn num_ranges(&self) -> u16

Number of records to follow

source

pub fn gasp_ranges(&self) -> &'a [GaspRange]

Sorted by ppem

Trait Implementations§

source§

impl<'a> Debug for Gasp<'a>

source§

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

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

impl<'a> FontRead<'a> for Gasp<'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 Gasp<'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.
source§

impl TopLevelTable for Gasp<'_>

source§

const TAG: Tag = _

gasp