Struct allsorts_no_std::tables::HeadTable[][src]

pub struct HeadTable {
    pub major_version: u16,
    pub minor_version: u16,
    pub font_revision: u32,
    pub check_sum_adjustment: u32,
    pub magic_number: u32,
    pub flags: u16,
    pub units_per_em: u16,
    pub created: i64,
    pub modified: i64,
    pub x_min: i16,
    pub y_min: i16,
    pub x_max: i16,
    pub y_max: i16,
    pub mac_style: u16,
    pub lowest_rec_ppem: u16,
    pub font_direction_hint: i16,
    pub index_to_loc_format: IndexToLocFormat,
    pub glyph_data_format: i16,
}

Fields

major_version: u16minor_version: u16font_revision: u32check_sum_adjustment: u32magic_number: u32flags: u16units_per_em: u16created: i64modified: i64x_min: i16y_min: i16x_max: i16y_max: i16mac_style: u16lowest_rec_ppem: u16font_direction_hint: i16index_to_loc_format: IndexToLocFormatglyph_data_format: i16

Implementations

impl HeadTable[src]

pub fn is_bold(&self) -> bool[src]

pub fn is_italic(&self) -> bool[src]

Trait Implementations

impl Clone for HeadTable[src]

impl Debug for HeadTable[src]

impl Hash for HeadTable[src]

impl PartialEq<HeadTable> for HeadTable[src]

impl PartialOrd<HeadTable> for HeadTable[src]

impl<'a> ReadBinary<'a> for HeadTable[src]

type HostType = Self

impl StructuralPartialEq for HeadTable[src]

impl<'a> WriteBinary<&'_ HeadTable> for HeadTable[src]

type Output = Placeholder<U32Be, u32>

The type of the value returned by write.

fn write<C: WriteContext>(
    ctxt: &mut C,
    table: &HeadTable
) -> Result<Self::Output, WriteError>
[src]

Writes the table to the WriteContext and returns a placeholder to the check_sum_adjustment field.

The check_sum_adjustment field requires special handling to calculate. See: https://docs.microsoft.com/en-us/typography/opentype/spec/head

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<'a, T> ReadBinaryDep<'a> for T where
    T: ReadBinary<'a>, 
[src]

type Args = ()

type HostType = <T as ReadBinary<'a>>::HostType

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, HostType> WriteBinaryDep<HostType> for T where
    T: WriteBinary<HostType>, 
[src]

type Args = ()

The type of the arguments supplied to write_dep.

type Output = <T as WriteBinary<HostType>>::Output

The type of the value returned by write_dep.