Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Custom font problem...

Featured Replies

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 :)

 

 

 

 

Guest
This topic is now closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.