Struct ilmenite::font::ImtFont [−][src]
pub struct ImtFont { /* fields omitted */ }
Implementations
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 !UnwindSafe for ImtFont
Blanket Implementations
Mutably borrows from an owned value. Read more
Builds a pointer to this type from a raw pointer.
Returns true if the size is suitable to store a type like this.
Returns the size of an individual element.