This site requires JavaScript, please enable it in your browser!
Greenfoot back
Nosson1459
Nosson1459 wrote ...

2016/11/6

font

Nosson1459 Nosson1459

2016/11/6

#
how do I set a font other than the reg. greenfoot one??
danpost danpost

2016/11/6

#
Nosson1459 wrote...
how do I set a font other than the reg. greenfoot one??
You cannot programmatically change the font used by the World class method 'showText' or the GreenfootImage constructor 'GreenfootImage(String, int, Color, Color)'. However, my TextImage Support Class scenario can be studied or the TextImage class from it can be used directly to create TextImage objects (which ARE GreenfootImage objects) when the class is included in your project.
You need to login to post a reply.