Struct opentype::Font[][src]

pub struct Font {
    pub offset_table: OffsetTable,
}

A font.

Fields

offset_table: OffsetTable

The offset table.

Implementations

impl Font[src]

pub fn read<T>(tape: &mut T) -> Result<Font> where
    T: Read + Seek
[src]

Read a font.

pub fn take<'l, T, U>(&self, tape: &mut T) -> Result<Option<U>> where
    T: Read + Seek,
    U: Table<'l, Parameter = ()>, 
[src]

Find, verify, and read a table.

pub fn take_given<'l, T, U>(
    &self,
    tape: &mut T,
    parameter: U::Parameter
) -> Result<Option<U>> where
    T: Read + Seek,
    U: Table<'l>, 
[src]

Find, verify, and read a table given a parameter.

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<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.