How to set font size in Slick 2D

I tried doing this to change the font size of my intro, but I am getting an error of "the method setFont() in the type Graphics is not applicable for the arguments (Font) "

Here is what I’ve tried:

import java.awt.Font;

import org.lwjgl.input.Mouse;
import org.newdawn.slick.*;
import org.newdawn.slick.state.*;

public class FirstGameMenu extends BasicGameState{
	
	Font font;
	
	public FirstGameMenu(int state){
		
	}
	
	// load all fonts, graphics, sounds, etc
	public void init(GameContainer gc, StateBasedGame sbg) throws SlickException{
		font = new Font("Time New Roman", Font.BOLD, 20);
	}

	//draw stuff on the screen
	public void render(GameContainer gc, StateBasedGame sbg, Graphics g) throws SlickException{
		
		Image enter = new Image("res1/button2.png");
		//set the coordinates for the pic
		g.drawImage(enter, 315, 180);
		g.setFont(font);
		g.drawString("How to Play", 385, 460);
		g.drawString("Exit", 415, 520);	
	}

Check this out:
http://lwjgl.org/wiki/index.php?title=Slick-Util_Library_-Part_3-_TrueType_Fonts_for_LWJGL
Should tell you everything you need to know!

For this line:

InputStream inputStream = ResourceLoader.getResourceAsStream("myfont.ttf");

is the myfont.tff an actual file or something? Does that mean I have to save the word (the one that I want to increase the font size) to a file or can I just simply type in the word that I want to resize?

It’s a true type font file. Nearly all fonts are created in .ttf format. You can download fonts online, or if using windows fonts, the ttf files are at control panel >> appearance and personalization >> fonts.

Ok thanks!
Do you know how I can fix this error that I am getting for that line though? I am getting:

java.lang.RuntimeException: Resource not found: Pokemon Hollow.ttf
	at org.newdawn.slick.util.ResourceLoader.getResourceAsStream(ResourceLoader.java:69)
	at randoms.FontExample.init(FontExample.java:89)
	at randoms.FontExample.start(FontExample.java:27)
	at randoms.FontExample.main(FontExample.java:115)
Exception in thread "main" java.lang.NullPointerException
	at randoms.FontExample.render(FontExample.java:107)
	at randoms.FontExample.start(FontExample.java:31)
	at randoms.FontExample.main(FontExample.java:115)

Which first points at this line of code:

			InputStream inputStream	= ResourceLoader.getResourceAsStream("Pokemon Hollow.ttf");//the font style

Is it because I am not calling the correct location of this font or something?

Yes, you’ll need to add a leading slash before the name of the file, and you will also have to add the path, minus the “/root”. So for instance, if your TTF file was in “res/fonts/font.ttf”, the path would be “/fonts/font.ttf”.