Type Alias FdSelectFormat4

Source
pub type FdSelectFormat4<'a> = TableRef<'a, FdSelectFormat4Marker>;
Expand description

FdSelect format 4.

Aliased Type§

pub struct FdSelectFormat4<'a> {
    pub(crate) shape: FdSelectFormat4Marker,
    pub(crate) data: FontData<'a>,
}

Fields§

§shape: FdSelectFormat4Marker§data: FontData<'a>

Implementations§

Source§

impl<'a> FdSelectFormat4<'a>

Source

pub fn format(&self) -> u8

Format = 4.

Source

pub fn n_ranges(&self) -> u32

Number of ranges.

Source

pub fn ranges(&self) -> &'a [FdSelectRange4]

Range4 array.

Source

pub fn sentinel(&self) -> u32

Sentinel GID. Set equal to the number of glyphs in the font.

Trait Implementations§

Source§

impl<'a> Debug for FdSelectFormat4<'a>

Source§

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

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

impl<'a> FontRead<'a> for FdSelectFormat4<'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 FdSelectFormat4<'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.