Type Alias read_fonts::tables::layout::CoverageFormat2

source ·
pub type CoverageFormat2<'a> = TableRef<'a, CoverageFormat2Marker>;
Expand description

Aliased Type§

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

Implementations§

source§

impl<'a> CoverageFormat2<'a>

source

pub fn coverage_format(&self) -> u16

Format identifier — format = 2

source

pub fn range_count(&self) -> u16

Number of RangeRecords

source

pub fn range_records(&self) -> &'a [RangeRecord]

Array of glyph ranges — ordered by startGlyphID.

source§

impl CoverageFormat2<'_>

source

pub fn get(&self, gid: GlyphId) -> Option<u16>

If this glyph is in the coverage table, returns its index

Trait Implementations§

source§

impl<'a> Debug for CoverageFormat2<'a>

source§

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

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

impl<'a> FontRead<'a> for CoverageFormat2<'a>

source§

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

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

impl<'a> SomeTable<'a> for CoverageFormat2<'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.