Font#new does not render anything. Font#draw renders characters once, on demand. So it will be slow the first time you draw things :)
Font#[]=. Oh man, documenting is so annoying. Where to put stuff? I should really try yard. :)my_font.text_width("ABCDEFG...putyourstuffhere") will render all these characters internally, so that the following draw call will be super fast, and can be called right after Font creation.
Sample.[] sure is convenient. ;)
Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill