kludgine 0.1.0-dev.3

An asynchronous app and 2d game framework
Documentation
use kludgine::{core::text::bundled_fonts::ROBOTO, prelude::*};

fn main() {
    SingleWindowApplication::run(TextExample {});
}

struct TextExample {}

impl WindowCreator for TextExample {
    fn window_title(&self) -> String {
        "Text - Kludgine".to_owned()
    }
}

impl Window for TextExample {
    fn render(
        &mut self,
        scene: &Target,
        _status: &mut RedrawStatus,
        _window: WindowHandle,
    ) -> kludgine::Result<()> {
        Text::prepare(
            "Hello, World!",
            &ROBOTO,
            Figure::new(64.),
            Color::BISQUE,
            scene,
        )
        .render_baseline_at(scene, Point::<f32, Scaled>::new(64., 64.))?;
        Ok(())
    }
}