Slick Forums

Discuss the Slick 2D Library
It is currently Sun May 19, 2013 6:17 pm

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Wed Oct 03, 2012 9:15 am 
Offline

Joined: Wed Oct 03, 2012 9:06 am
Posts: 2
Russian characters are not displayed
Help pls)
Code:
public void render(GameContainer gc,StateBasedGame sbg,Graphics g) throws SlickException{
     g.drawString("english_русский_((((((", 700, 10);
     g.drawString("Welcome to gameввччч!", 100, 350);
  }

Image


Top
 Profile  
 
PostPosted: Wed Oct 03, 2012 4:20 pm 
Offline
Slick Zombie

Joined: Sat Jan 27, 2007 7:10 pm
Posts: 1467
Try using UnicodeFont.


Top
 Profile  
 
PostPosted: Wed Oct 03, 2012 9:03 pm 
Offline

Joined: Wed Oct 03, 2012 9:06 am
Posts: 2
davedes wrote:
Try using UnicodeFont.

How to use it? I did not succeed.


Top
 Profile  
 
PostPosted: Wed Oct 03, 2012 9:52 pm 
Offline
Oldbie

Joined: Thu Mar 15, 2012 12:38 am
Posts: 260
Nekon wrote:
davedes wrote:
Try using UnicodeFont.

How to use it? I did not succeed.


You should be able to find some examples in this section by searching for "unicode". Some of the posts have code examples, which could be enough for you to get started. :)


Top
 Profile  
 
PostPosted: Thu Oct 04, 2012 1:09 am 
Offline
Slick Zombie

Joined: Sat Jan 27, 2007 7:10 pm
Posts: 1467
As with most features of Slick, there is also a test case demonstrating a few ways of using it:
https://bitbucket.org/kevglass/slick/sr ... tTest.java


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 3 guests


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