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

2022/12/20

Font List

geeeech geeeech

2022/12/20

#
I need a list of fonts that can be used in Greenfoot. And because some people here are a bit slow, what I mean is a list of fonts just like in word or openoffice which I can choose from. I just want the names, preferably one which looks like pixel graphics. The API of greenfoot is horrible so any help is welcome.
danpost danpost

2022/12/21

#
geeeech wrote...
I need a list of fonts that can be used in Greenfoot. And because some people here are a bit slow, what I mean is a list of fonts just like in word or openoffice which I can choose from. I just want the names, preferably one which looks like pixel graphics. The API of greenfoot is horrible so any help is welcome.
Download my TextImage Support Class scenario. Then open it in your Greenfoot application. Do not run the scenario. The TextImage class has a listFonts method in it that can be executed manually (right click on class and select the method). If your terminal is not set to infinite lines, you may lose the front part of the list. Just set it properly, clear the terminal data and manually execute the method again. The fonts listed should be those you have on your system. Since the class uses the java.awt package to work, it will not translate to javascript/HTML code (to work on a website). This is not anything the Greenfoot team can do anything about. So, anyway, you can locally use the TextImage class in any scenario to help with all your fonts.
You need to login to post a reply.