Struct mupdf::font::Font [−][src]
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]
name: &str,
index: i32,
font_data: &[u8]
) -> Result<Self, Error>
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]
&self,
glyph: i32,
wmode: bool
) -> Result<f32, Error>
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]
&self,
glyph: i32,
ctm: &Matrix
) -> Result<Path, Error>
pub fn outline_glyph(&self, glyph: i32) -> Result<Path, Error>
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Font
impl !Send for Font
impl !Sync for Font
impl Unpin for Font
impl UnwindSafe for Font
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> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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>,