Type Alias CaretValueFormat3

Source
pub type CaretValueFormat3<'a> = TableRef<'a, CaretValueFormat3Marker>;
Expand description

Aliased Type§

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

Fields§

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

Implementations§

Source§

impl<'a> CaretValueFormat3<'a>

Source

pub fn caret_value_format(&self) -> u16

Format identifier-format = 3

Source

pub fn coordinate(&self) -> i16

X or Y value, in design units

Source

pub fn device_offset(&self) -> Offset16

Offset to Device table (non-variable font) / Variation Index table (variable font) for X or Y value-from beginning of CaretValue table

Source

pub fn device(&self) -> Result<DeviceOrVariationIndex<'a>, ReadError>

Attempt to resolve device_offset.

Trait Implementations§

Source§

impl<'a> Debug for CaretValueFormat3<'a>

Source§

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

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

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