I currently have this piece of code, however, whatever font name I input into the the font line, the text still looks the same
1 2 3 4 5 6 7 8 9 10 | public void act() { GreenfootImage img = new GreenfootImage( 500 , 100 ); img.setColor(Color.BLACK); img.fill(); img.setColor(Color.RED); img.setFont( new Font( "Arial" , false , false , 100 )); //font line img.drawString( "YOU DIED" , 10 , 90 ); setImage(img); } |