Type Alias MinMax

Source
pub type MinMax<'a> = TableRef<'a, MinMaxMarker>;
Expand description

MinMax table

Aliased Type§

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

Fields§

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

Implementations§

Source§

impl<'a> MinMax<'a>

Source

pub fn min_coord_offset(&self) -> Nullable<Offset16>

Offset to BaseCoord table that defines the minimum extent value, from the beginning of MinMax table (may be NULL)

Source

pub fn min_coord(&self) -> Option<Result<BaseCoord<'a>, ReadError>>

Attempt to resolve min_coord_offset.

Source

pub fn max_coord_offset(&self) -> Nullable<Offset16>

Offset to BaseCoord table that defines maximum extent value, from the beginning of MinMax table (may be NULL)

Source

pub fn max_coord(&self) -> Option<Result<BaseCoord<'a>, ReadError>>

Attempt to resolve max_coord_offset.

Source

pub fn feat_min_max_count(&self) -> u16

Number of FeatMinMaxRecords — may be zero (0)

Source

pub fn feat_min_max_records(&self) -> &'a [FeatMinMaxRecord]

Array of FeatMinMaxRecords, in alphabetical order by featureTableTag

Trait Implementations§

Source§

impl<'a> Debug for MinMax<'a>

Source§

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

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

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