#[repr(C, packed(1))]pub struct MathKernInfoRecord {
pub top_right_math_kern_offset: BigEndian<Nullable<Offset16>>,
pub top_left_math_kern_offset: BigEndian<Nullable<Offset16>>,
pub bottom_right_math_kern_offset: BigEndian<Nullable<Offset16>>,
pub bottom_left_math_kern_offset: BigEndian<Nullable<Offset16>>,
}Expand description
The offsets are measured from the beginning of the MathKernInfo table.
Fields§
§top_right_math_kern_offset: BigEndian<Nullable<Offset16>>Offset to the MathKern table for the top right corner, from the beginning of the MathKernInfo table. May be NULL.
top_left_math_kern_offset: BigEndian<Nullable<Offset16>>Offset to the MathKern table for the top left corner, from the beginning of the MathKernInfo table. May be NULL.
bottom_right_math_kern_offset: BigEndian<Nullable<Offset16>>Offset to the MathKern table for the bottom right corner, from the beginning of the MathKernInfo table. May be NULL.
bottom_left_math_kern_offset: BigEndian<Nullable<Offset16>>Offset to the MathKern table for the bottom left corner, from the beginning of the MathKernInfo table. May be NULL.
Implementations§
Source§impl MathKernInfoRecord
impl MathKernInfoRecord
Sourcepub fn top_right_math_kern_offset(&self) -> Nullable<Offset16>
pub fn top_right_math_kern_offset(&self) -> Nullable<Offset16>
Offset to the MathKern table for the top right corner, from the beginning of the MathKernInfo table. May be NULL.
Sourcepub fn top_right_math_kern<'a>(
&self,
data: FontData<'a>,
) -> Option<Result<MathKern<'a>, ReadError>>
pub fn top_right_math_kern<'a>( &self, data: FontData<'a>, ) -> Option<Result<MathKern<'a>, ReadError>>
Offset to the MathKern table for the top right corner, from the beginning of the MathKernInfo table. May be NULL.
The data argument should be retrieved from the parent table
By calling its offset_data method.
Sourcepub fn top_left_math_kern_offset(&self) -> Nullable<Offset16>
pub fn top_left_math_kern_offset(&self) -> Nullable<Offset16>
Offset to the MathKern table for the top left corner, from the beginning of the MathKernInfo table. May be NULL.
Sourcepub fn top_left_math_kern<'a>(
&self,
data: FontData<'a>,
) -> Option<Result<MathKern<'a>, ReadError>>
pub fn top_left_math_kern<'a>( &self, data: FontData<'a>, ) -> Option<Result<MathKern<'a>, ReadError>>
Offset to the MathKern table for the top left corner, from the beginning of the MathKernInfo table. May be NULL.
The data argument should be retrieved from the parent table
By calling its offset_data method.
Sourcepub fn bottom_right_math_kern_offset(&self) -> Nullable<Offset16>
pub fn bottom_right_math_kern_offset(&self) -> Nullable<Offset16>
Offset to the MathKern table for the bottom right corner, from the beginning of the MathKernInfo table. May be NULL.
Sourcepub fn bottom_right_math_kern<'a>(
&self,
data: FontData<'a>,
) -> Option<Result<MathKern<'a>, ReadError>>
pub fn bottom_right_math_kern<'a>( &self, data: FontData<'a>, ) -> Option<Result<MathKern<'a>, ReadError>>
Offset to the MathKern table for the bottom right corner, from the beginning of the MathKernInfo table. May be NULL.
The data argument should be retrieved from the parent table
By calling its offset_data method.
Sourcepub fn bottom_left_math_kern_offset(&self) -> Nullable<Offset16>
pub fn bottom_left_math_kern_offset(&self) -> Nullable<Offset16>
Offset to the MathKern table for the bottom left corner, from the beginning of the MathKernInfo table. May be NULL.
Sourcepub fn bottom_left_math_kern<'a>(
&self,
data: FontData<'a>,
) -> Option<Result<MathKern<'a>, ReadError>>
pub fn bottom_left_math_kern<'a>( &self, data: FontData<'a>, ) -> Option<Result<MathKern<'a>, ReadError>>
Offset to the MathKern table for the bottom left corner, from the beginning of the MathKernInfo table. May be NULL.
The data argument should be retrieved from the parent table
By calling its offset_data method.
Trait Implementations§
impl AnyBitPattern for MathKernInfoRecord
Source§impl Clone for MathKernInfoRecord
impl Clone for MathKernInfoRecord
Source§fn clone(&self) -> MathKernInfoRecord
fn clone(&self) -> MathKernInfoRecord
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for MathKernInfoRecord
Source§impl Debug for MathKernInfoRecord
impl Debug for MathKernInfoRecord
Source§impl FixedSize for MathKernInfoRecord
impl FixedSize for MathKernInfoRecord
Source§const RAW_BYTE_LEN: usize
const RAW_BYTE_LEN: usize
Auto Trait Implementations§
impl Freeze for MathKernInfoRecord
impl RefUnwindSafe for MathKernInfoRecord
impl Send for MathKernInfoRecord
impl Sync for MathKernInfoRecord
impl Unpin for MathKernInfoRecord
impl UnsafeUnpin for MathKernInfoRecord
impl UnwindSafe for MathKernInfoRecord
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
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
bits
as &Self.