pub struct MathGlyphInfo<'a> {
data: TableDataRef<'a, MathGlyphInfoFixedHeader>,
}Expand description
Fields§
§data: TableDataRef<'a, MathGlyphInfoFixedHeader>Implementations§
Source§impl<'a> MathGlyphInfo<'a>
impl<'a> MathGlyphInfo<'a>
pub const MIN_SIZE: usize
Sourcepub fn resolve_offset<O: Offset, R: FontRead<'a, Args = ()>>(
&self,
offset: O,
) -> Result<R, ReadError>
pub fn resolve_offset<O: Offset, R: FontRead<'a, Args = ()>>( &self, offset: O, ) -> Result<R, ReadError>
Resolve the provided offset from the start of this table.
Sourcepub fn offset_data(&self) -> FontData<'a>
pub fn offset_data(&self) -> FontData<'a>
Return a reference to this table’s raw data.
We use this in the compile crate to resolve offsets.
Sourcepub fn shape(&self) -> &Self
👎Deprecated: just use the base type directly
pub fn shape(&self) -> &Self
just use the base type directly
Return a reference to the table’s ‘Shape’ struct.
This is a low level implementation detail, but it can be useful in some cases where you want to know things about a table’s layout, such as the byte offsets of specific fields.
Sourcepub fn math_italics_correction_info_offset(&self) -> Nullable<Offset16>
pub fn math_italics_correction_info_offset(&self) -> Nullable<Offset16>
Offset to MathItalicsCorrectionInfo table, from the beginning of the MathGlyphInfo table. May be NULL.
Sourcepub fn math_italics_correction_info(
&self,
) -> Option<Result<MathItalicsCorrectionInfo<'a>, ReadError>>
pub fn math_italics_correction_info( &self, ) -> Option<Result<MathItalicsCorrectionInfo<'a>, ReadError>>
Attempt to resolve math_italics_correction_info_offset.
Sourcepub fn math_top_accent_attachment_offset(&self) -> Nullable<Offset16>
pub fn math_top_accent_attachment_offset(&self) -> Nullable<Offset16>
Offset to MathTopAccentAttachment table, from the beginning of the MathGlyphInfo table. May be NULL.
Sourcepub fn math_top_accent_attachment(
&self,
) -> Option<Result<MathTopAccentAttachment<'a>, ReadError>>
pub fn math_top_accent_attachment( &self, ) -> Option<Result<MathTopAccentAttachment<'a>, ReadError>>
Attempt to resolve math_top_accent_attachment_offset.
Sourcepub fn extended_shape_coverage_offset(&self) -> Nullable<Offset16>
pub fn extended_shape_coverage_offset(&self) -> Nullable<Offset16>
Offset to the Coverage table for glyphs with extended shapes, from the beginning of the MathGlyphInfo table. May be NULL.
Sourcepub fn extended_shape_coverage(
&self,
) -> Option<Result<CoverageTable<'a>, ReadError>>
pub fn extended_shape_coverage( &self, ) -> Option<Result<CoverageTable<'a>, ReadError>>
Attempt to resolve extended_shape_coverage_offset.
Sourcepub fn math_kern_info_offset(&self) -> Nullable<Offset16>
pub fn math_kern_info_offset(&self) -> Nullable<Offset16>
Offset to the MathKernInfo table, from the beginning of the MathGlyphInfo table. May be NULL.
Sourcepub fn math_kern_info(&self) -> Option<Result<MathKernInfo<'a>, ReadError>>
pub fn math_kern_info(&self) -> Option<Result<MathKernInfo<'a>, ReadError>>
Attempt to resolve math_kern_info_offset.
pub fn math_italics_correction_info_offset_byte_range(&self) -> Range<usize> ⓘ
pub fn math_top_accent_attachment_offset_byte_range(&self) -> Range<usize> ⓘ
pub fn extended_shape_coverage_offset_byte_range(&self) -> Range<usize> ⓘ
pub fn math_kern_info_offset_byte_range(&self) -> Range<usize> ⓘ
Source§impl MathGlyphInfo<'_>
impl MathGlyphInfo<'_>
Sourcepub fn is_extended_shape(&self, glyph: GlyphId) -> bool
pub fn is_extended_shape(&self, glyph: GlyphId) -> bool
Whether a glyph is an extended shape: one tall enough that a following script is positioned against its own height rather than the font’s.
Trait Implementations§
Source§impl<'a> Clone for MathGlyphInfo<'a>
impl<'a> Clone for MathGlyphInfo<'a>
Source§fn clone(&self) -> MathGlyphInfo<'a>
fn clone(&self) -> MathGlyphInfo<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more