Slick Forums

Discuss the Slick 2D Library
It is currently Wed Jun 19, 2013 3:05 am

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Sun May 17, 2009 1:44 pm 
Offline

Joined: Wed Sep 17, 2008 1:06 am
Posts: 96
When I call drawString, sometimes it starts drawing a string I use elsewhere, I don't know why. For example, g.drawString("<===|=", (int) xpos, (int) ypos); might instead start drawing "sinCur=0.08995" briefly. This is a string I draw elsewhere. This will continue until the string decides to change back; I don't know what causes it to though. This doesn't happen in older builds. What's wrong?


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 17, 2009 1:55 pm 
Offline
Site Admin
User avatar

Joined: Thu Jan 01, 1970 12:00 am
Posts: 3143
Have you got the latest build, this was a problem in display list caching for fonts but was fixed quite recently.

Which font type are you using when you're drawing the string?

Kev


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 06, 2010 4:58 pm 
Offline

Joined: Wed Jan 06, 2010 4:32 pm
Posts: 3
Hello there,
I reopen this topic because I have exactly the same problem...
I have the last build b270 running on win7 with Netbeans.

I don't understand what's happening... I used the defaut font I guess (because I don't set a specific font).

It's a slick's bug ?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 06, 2010 5:18 pm 
Offline
Regular
User avatar

Joined: Thu Dec 18, 2008 6:07 pm
Posts: 238
Location: Bournemouth, UK
gijaw wrote:
Hello there,
I don't understand what's happening... I used the defaut font I guess (because I don't set a specific font).


Perhaps the default font within Slick is still using the TrueTypeFont class instead of UnicodeFont?

_________________
- Gwinnell (irc.freenode.net, irc.chatspike.net)
- Game Jolt Moderator


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 06, 2010 5:32 pm 
Offline

Joined: Wed Jan 06, 2010 4:32 pm
Posts: 3
I don't know... it's the AngelCodeFont (g.getFont().getClass() give me org.newdawn.slick.AngelCodeFont ).

The javadoc says the font comes from angelcode.com. It seems to be a Unicode Font.

EDIT : same issue here (search with AngelCodeFont as criteria): http://slick.javaunlimited.net/viewtopi ... nicodefont


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group