Slick Forums

Discuss the Slick 2D Library
It is currently Thu Oct 17, 2019 12:20 am

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Wed Apr 08, 2015 2:42 pm 
Offline

Joined: Tue Apr 07, 2015 4:13 pm
Posts: 1
i needed suppoert in "hebrew" so i used unicodeFont and i have a little problem with it.

i donno why its happening but my text is sometimes getting blurry (same letters sometimes work and sometimes doesnt) + it take much time to load.

i have different texts with different sizes so each text is on different unicode and its making the init take too long, maybe im doing it wrong?

anyway the main problem is the blur i get. (i noticed that with different sizes it get blury more - 22 suck, 24 good and thats only 1 example)

my code
Code:
java.awt.Font awtFont = new java.awt.Font("Arial", java.awt.Font.BOLD, fontSize);
         myFont = new UnicodeFont(awtFont);
         
         //hebrew
         myFont.addGlyphs(0x0590,0x05FF);
         
         //english + numbers
         myFont.addGlyphs(0x0020,0x007E);
         
         //myFont.addGlyphs("=?//פםןוטארקףךלחיעכגדשזסהנמצתץב'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ.,1234567890#%:-");
         myFont.getEffects().add(new ColorEffect(color));
         myFont.loadGlyphs();
         myFont.addAsciiGlyphs();


here is a pic
with some that looks good and some that look bad.
i will put the bad part in black border(it look a bit chewy - zoom in on the letters u will see it)
Image


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 21 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:  
cron
Powered by phpBB® Forum Software © phpBB Group