feature request: some boilerplate
Created by: ciofeca
I'd like to encapsulate a font and related goodies (font data, current sizes/zoom, etc) into a struct to pass around so that: let mut text = MyStruct::new(&"fonts/Dauphin.ttf").unwrap().set_size(12.5); text.render(somestring, |x,y| { /* ... */ }); somewindow.set_font(text);
I'm unable to place FontCollection in some MyStruct: it requires way more lifetime magic powder than I have because of that SharedBytes. My suggestion is to demote it to an Arc, but there could be better solutions.