read_fonts::tables::layout

Type Alias 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: impl Into<GlyphId>) -> Option<u16>

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

Trait Implementations§

Source§

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

Source§

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

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