pub struct Font { /* private fields */ }
Implementations§
source§impl Font
impl Font
pub const fn new( letters: &'static [FontLetter; 128], line_height: i32, ascent: i32 ) -> Self
source§impl Font
impl Font
sourcepub fn render_text(
&self,
tile_pos: impl Into<Vector2D<u16>>
) -> TextRenderer<'_>
pub fn render_text( &self, tile_pos: impl Into<Vector2D<u16>> ) -> TextRenderer<'_>
Create renderer starting at the given tile co-ordinates.