Struct opentype::Font [−][src]
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]
T: Read + Seek,
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]
T: Read + Seek,
U: Table<'l, Parameter = ()>,
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]
&self,
tape: &mut T,
parameter: U::Parameter
) -> Result<Option<U>> where
T: Read + Seek,
U: Table<'l>,
Find, verify, and read a table given a parameter.
Auto Trait Implementations
impl RefUnwindSafe for Font
[src]
impl Send for Font
[src]
impl Sync for Font
[src]
impl Unpin for Font
[src]
impl UnwindSafe for Font
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,