pub struct Ilmenite { /* private fields */ }
Implementations
sourceimpl Ilmenite
impl Ilmenite
pub fn new() -> Self
pub fn add_font(&self, font: ImtFont)
pub fn has_font<F: Into<String>>(&self, family: F, weight: ImtWeight) -> bool
pub fn glyphs_for_text<T: AsRef<str>>(
&self,
family: String,
weight: ImtWeight,
text_height: f32,
shape_ops: Option<ImtShapeOpts>,
text: T
) -> Result<Vec<ImtGlyph>, ImtError>
Auto Trait Implementations
impl RefUnwindSafe for Ilmenite
impl Send for Ilmenite
impl Sync for Ilmenite
impl Unpin for Ilmenite
impl UnwindSafe for Ilmenite
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more