read_fonts::tables::layout

Type Alias CoverageFormat1

Source
pub type CoverageFormat1<'a> = TableRef<'a, CoverageFormat1Marker>;
Expand description

Aliased Type§

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

Implementations§

Source§

impl<'a> CoverageFormat1<'a>

Source

pub fn coverage_format(&self) -> u16

Format identifier — format = 1

Source

pub fn glyph_count(&self) -> u16

Number of glyphs in the glyph array

Source

pub fn glyph_array(&self) -> &'a [BigEndian<GlyphId16>]

Array of glyph IDs — in numerical order

Source§

impl CoverageFormat1<'_>

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 CoverageFormat1<'a>

Source§

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

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