Type Alias GlyphDataEntry

Source
pub type GlyphDataEntry<'a> = TableRef<'a, GlyphDataEntryMarker>;

Aliased Type§

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

Fields§

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

Implementations§

Source§

impl<'a> GlyphDataEntry<'a>

Source

pub fn num_points(&self) -> u32

Number of anchor points for this glyph.

Source

pub fn anchor_points(&self) -> &'a [AnchorPoint]

Individual anchor points.

Trait Implementations§

Source§

impl<'a> Debug for GlyphDataEntry<'a>

Source§

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

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

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