public Set getAllFonts() { if(fontsByName.size() == 0) {  TTFFontData fontData; try { fontData = new TTFFontDataFile(this.getClass().getClassLoader().getResource("/" + "luxisr.ttf")); TTFFont font = new TTFFont(fontData,10 ); fontsByName.put(font.getName(),font);  } catch (IOException e) { throw new RuntimeException(e); }
public Set getAllFonts() { if (!fontsLoaded) { loadFonts();
	public Set getAllFonts() 	{		if(fontsByName.size() == 0)		{			// load the luxisr.ttf			TTFFontData fontData;			try {				fontData = new TTFFontDataFile(this.getClass().getClassLoader().getResource("/" + "luxisr.ttf"));				TTFFont font = new TTFFont(fontData,10 );				fontsByName.put(font.getName(),font);							} catch (IOException e) {				throw new RuntimeException(e);			}		}		return new HashSet(fontsByName.values());	}