[][src]Struct mupdf::font::Font

pub struct Font { /* fields omitted */ }

Implementations

impl Font[src]

pub fn new(name: &str) -> Result<Self, Error>[src]

pub fn new_with_index(name: &str, index: i32) -> Result<Self, Error>[src]

pub fn from_bytes(name: &str, font_data: &[u8]) -> Result<Self, Error>[src]

pub fn from_bytes_with_index(
    name: &str,
    index: i32,
    font_data: &[u8]
) -> Result<Self, Error>
[src]

pub fn name(&self) -> &str[src]

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

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

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

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

pub fn ascender(&self) -> f32[src]

pub fn descender(&self) -> f32[src]

pub fn encode_character(&self, unicode: i32) -> Result<i32, Error>[src]

pub fn advance_glyph_with_wmode(
    &self,
    glyph: i32,
    wmode: bool
) -> Result<f32, Error>
[src]

pub fn advance_glyph(&self, glyph: i32) -> Result<f32, Error>[src]

pub fn outline_glyph_with_ctm(
    &self,
    glyph: i32,
    ctm: &Matrix
) -> Result<Path, Error>
[src]

pub fn outline_glyph(&self, glyph: i32) -> Result<Path, Error>[src]

Trait Implementations

impl Debug for Font[src]

impl Display for Font[src]

impl Drop for Font[src]

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> ToString for T where
    T: Display + ?Sized
[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.