Type Alias read_fonts::tables::layout::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> Debug for CoverageFormat1<'a>

source§

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

Formats the value using the given formatter. Read more
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
source§

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