Struct quicksilver::graphics::Font [−][src]
pub struct Font { /* fields omitted */ }
An in-memory TTF font that can render text on demand
Methods
impl Font
[src]
impl Font
pub fn load<P: AsRef<Path>>(path: P) -> FontLoader
[src]
pub fn load<P: AsRef<Path>>(path: P) -> FontLoader
Load a font at a given file
pub fn render(&self, text: &str, size: f32, color: Color) -> Image
[src]
pub fn render(&self, text: &str, size: f32, color: Color) -> Image
Render a text string to an Image
This function does not take into account unicode normalization or vertical layout