pub struct ImtFont { /* private fields */ }
Implementations
sourceimpl ImtFont
impl ImtFont
pub fn from_file_gpu<F: Into<String>, P: AsRef<Path>>(
family: F,
weight: ImtWeight,
raster_ops: ImtRasterOpts,
device: Arc<Device>,
queue: Arc<Queue>,
path: P
) -> Result<ImtFont, ImtError>
pub fn from_file_cpu<F: Into<String>, P: AsRef<Path>>(
family: F,
weight: ImtWeight,
raster_ops: ImtRasterOpts,
path: P
) -> Result<ImtFont, ImtError>
pub fn from_bytes_gpu<F: Into<String>>(
family: F,
weight: ImtWeight,
raster_ops: ImtRasterOpts,
device: Arc<Device>,
queue: Arc<Queue>,
bytes: Vec<u8>
) -> Result<ImtFont, ImtError>
pub fn from_bytes_cpu<F: Into<String>>(
family: F,
weight: ImtWeight,
raster_ops: ImtRasterOpts,
bytes: Vec<u8>
) -> Result<ImtFont, ImtError>
pub fn glyphs_for_text<T: AsRef<str>>(
&self,
text_height: f32,
shape_ops: ImtShapeOpts,
text: T
) -> Result<Vec<ImtGlyph>, ImtError>
Auto Trait Implementations
impl !RefUnwindSafe for ImtFont
impl Send for ImtFont
impl Sync for ImtFont
impl Unpin for ImtFont
impl !UnwindSafe for ImtFont
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