Jump to content

Custom font problem...


denoxum

Recommended Posts

Hey all,

 

I am trying to get a custom font to work.

 

When i load my client and run my script, the font works. But whenever i recompile my jar, i keep getting this formatFontException.

 

I have no idea why this happens and it really has no reason to be.

 

[iNFO ][05/26/14 09:55:23 PM]: whore bitch fuck
[iNFO ][05/26/14 09:55:23 PM]: Unsupported sfnt C:\Users\noob\AppData\Local\Temp\+~JF420612073403658506.tmp
 
 
try {
			istream = new BufferedInputStream(getClass().getResourceAsStream("/utilities/gay.ttf"));
			rsFont = Font.createFont(Font.TRUETYPE_FONT,istream);
			
		} catch (FontFormatException e1) {
			log("whore bitch fuck");
			log(e1.getMessage());
		} catch (IOException e1) {
			log("whore bitch fuck slut FUCK");
			log(e1.getMessage());

		}

the istream var is an InputStream variable and is private.

 

i have also tried without the BufferedInputStream().

 

I have also tried closing the stream onExit but it didn't help.

 

 

If you can find the problem I would be very happy :)

 

 

 

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...