Java-Gaming.org Java4K winners: [ by our judges | by the community ]         
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  Print  
  Slick Strings..  (Read 418 times)
0 Members and 1 Guest are viewing this topic.
Offline SkyAphid

Full Member
**

Posts: 156
Medals: 1



« on: 2012-01-06 08:10:34 »

So, I've been messing around with slick, and I'm getting the gist of it all. However, the string drawing seems to be a bit of a problem for me.
I tried using graphics.drawString, and it works fine, but there doesn't seem to be a way to edit the fonts. I tried graphics.setFont, but it told me fonts are inapplicable for it. So, then I looked up trueTypeFont, and it was deprecated. I went on to AngelCodeFont, and you have to import images containing fonts, but to do this you have to do a number of other things, which is a bit of overkill seeing as I simply want to use Arial.

Is there really no other simple way to change fonts in Slick?

"God grant me the serenity, to accept the things I cannot change; courage to change the things I can; and wisdom to know the difference."
Offline kevglass
« League of Dukes »

JGO Kernel
*****

Posts: 5214
Medals: 49


Mentally unstable, best avoided.


« Reply #1 on: 2012-01-06 08:15:35 »

Use TrueTypeFont (deprecated doesn't matter too much in this case) or use UnicodeFont

Cheers,

Kev

Offline SkyAphid

Full Member
**

Posts: 156
Medals: 1



« Reply #2 on: 2012-01-06 08:17:42 »

Use TrueTypeFont (deprecated doesn't matter too much in this case) or use UnicodeFont

Cheers,

Kev

Thanks Kevin.

"God grant me the serenity, to accept the things I cannot change; courage to change the things I can; and wisdom to know the difference."
Pages: [1]
  Print  
 
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.06 seconds with 20 queries.