Type Alias AnchorFormat3

Source
pub type AnchorFormat3<'a> = TableRef<'a, AnchorFormat3Marker>;
Expand description

Anchor Table Format 3: Design Units Plus Device or VariationIndex Tables

Aliased Type§

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

Fields§

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

Implementations§

Source§

impl<'a> AnchorFormat3<'a>

Source

pub fn anchor_format(&self) -> u16

Format identifier, = 3

Source

pub fn x_coordinate(&self) -> i16

Horizontal value, in design units

Source

pub fn y_coordinate(&self) -> i16

Vertical value, in design units

Source

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

Offset to Device table (non-variable font) / VariationIndex table (variable font) for X coordinate, from beginning of Anchor table (may be NULL)

Source

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

Attempt to resolve x_device_offset.

Source

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

Offset to Device table (non-variable font) / VariationIndex table (variable font) for Y coordinate, from beginning of Anchor table (may be NULL)

Source

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

Attempt to resolve y_device_offset.

Trait Implementations§

Source§

impl<'a> Debug for AnchorFormat3<'a>

Source§

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

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

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