A Simple way to draw text in macroquad with support of using glyphs from multiple fonts in a single draw_text call, also known as fallback fonts
I made this because the one provided by macroquad doesn't support this
From render_text example
```rust
use macroquad::prelude::*;
use macroquadfontrenderer::Fonts;
const NOTOSANS: &[u8] = includebytes!("../assets/fonts/NotoSans-Regular.ttf"); const NOTOSANSJP: &[u8] = include_bytes!("../assets/fonts/NotoSansJP-Regular.otf");
fn windowconf() -> Conf { Conf { windowtitle: "Rendering Text Example".toowned(), windowwidth: 330, windowheight: 267, highdpi: true, window_resizable: true, ..Default::default() } }
async fn main() { let mut fonts = Fonts::default();
fonts.loadfontfrombytes(NOTOSANS).unwrap(); fonts.loadfontfrombytes(NOTOSANS_JP).unwrap();
loop { fonts.drawtext("Nice", 20.0, 0.0, 69, Color::from([1.0; 4])); fonts.drawtext("良い", 20.0, 89.0, 69, Color::from([1.0; 4])); fonts.draw_text("Nice 良い", 20.0, 178.0, 69, Color::from([1.0; 4]));
next_frame().await;
} }