Struct ttf_parser::gvar::Table
source · pub struct Table<'a> {
axis_count: NonZeroU16,
shared_tuple_records: LazyArray16<'a, F2DOT14>,
offsets: GlyphVariationDataOffsets<'a>,
glyphs_variation_data: &'a [u8],
}
Expand description
Fields§
§axis_count: NonZeroU16
§offsets: GlyphVariationDataOffsets<'a>
§glyphs_variation_data: &'a [u8]
Implementations§
source§impl<'a> Table<'a>
impl<'a> Table<'a>
fn parse_variation_data( &self, glyph_id: GlyphId, coordinates: &[NormalizedCoordinate], points_len: u16, tuples: &mut VariationTuples<'a>, ) -> Option<()>
sourcepub fn outline(
&self,
glyf_table: Table<'_>,
coordinates: &[NormalizedCoordinate],
glyph_id: GlyphId,
builder: &mut dyn OutlineBuilder,
) -> Option<Rect>
pub fn outline( &self, glyf_table: Table<'_>, coordinates: &[NormalizedCoordinate], glyph_id: GlyphId, builder: &mut dyn OutlineBuilder, ) -> Option<Rect>
Outlines a glyph.
pub(crate) fn phantom_points( &self, glyf_table: Table<'_>, coordinates: &[NormalizedCoordinate], glyph_id: GlyphId, ) -> Option<PhantomPoints>
Trait Implementations§
impl<'a> Copy for Table<'a>
Auto Trait Implementations§
impl<'a> Freeze for Table<'a>
impl<'a> RefUnwindSafe for Table<'a>
impl<'a> Send for Table<'a>
impl<'a> Sync for Table<'a>
impl<'a> Unpin for Table<'a>
impl<'a> UnwindSafe for Table<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more