What is GlyphCache type in a function to render text in Piston2d
问题 I am trying to write a separate function to render text using piston2d. Taking the hello_world.rs example, I am trying to extend that to allow me to render text from within a function. Here is the code that I wrote: extern crate piston_window; extern crate find_folder; use piston_window::*; fn main() { let mut window: PistonWindow = WindowSettings::new( "piston: try to render text", [200, 200] ) .exit_on_esc(true) .build() .unwrap(); let assets = find_folder::Search::ParentsThenKids(3, 3)