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

2013/4/28

Write an int with a specified font

Solringolt Solringolt

2013/4/28

#
I want to show a score with a special font how can I : - write an int - write with my own font There is a function drawString() , is there a way to change an int into a string?
Duta Duta

2013/4/28

#
To change an int to a String, you can just do:
int someInt = 7;
String str = "" + someInt;
// str now equals "7"
Solringolt Solringolt

2013/4/28

#
Ok I kinda solved my problem using the counter class imported thx
You need to login to post a reply.