Trait rich_sdl2_ttf_rust::font::pen::FontRenderExt [−][src]
pub trait FontRenderExt {
fn text(&self, font: &Font<'_>, text: &str, options: FontRenderOptions);
}Expand description
An extension for [Pen] to render a text.
Required methods
fn text(&self, font: &Font<'_>, text: &str, options: FontRenderOptions)
fn text(&self, font: &Font<'_>, text: &str, options: FontRenderOptions)
Renders a text to the area with the font.