Trait rich_sdl2_rust::ttf::font::pen::FontRenderExt
source · pub trait FontRenderExt {
// Required method
fn text(&self, font: &Font<'_>, text: &str, options: FontRenderOptions);
}
Expand description
An extension for Pen
to render a text.
Required Methods§
sourcefn 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.