Struct orbfont::Font
[−]
[src]
pub struct Font { /* fields omitted */ }
Methods
impl Font
[src]
fn find(
typeface: Option<&str>,
family: Option<&str>,
style: Option<&str>
) -> Result<Font, String>
typeface: Option<&str>,
family: Option<&str>,
style: Option<&str>
) -> Result<Font, String>
fn from_path<P: AsRef<Path>>(path: P) -> Result<Font, String>
Load a font from file path
fn from_data<D: Into<SharedBytes<'static>>>(data: D) -> Result<Font, String>
Load a font from a slice
fn render<'a>(&'a self, text: &str, height: f32) -> Text<'a>
Render provided text using the font