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