LWJGL Forum

Programming => General Java Game Development => Topic started by: VikingBoyBilly on July 02, 2012, 12:06:18

Title: Slick Util's TrueTypeFont is deprecated
Post by: VikingBoyBilly on July 02, 2012, 12:06:18
Every tutorial and thread I've read about implementing text to the display through fonts seems to have been written before this deprecation occured.  When I look up Slick Util's TrueTypeFont class it says to use UnicodeFont instead, but the UnicodeFont class doesn't seem to exist with the libraries I have and there are no references to it.

Can somebody tell me what the current standard is for using fonts as far as lwjgl and opengl is concerned?
Title: Re: Slick Util's TrueTypeFont is deprecated
Post by: kappa on July 02, 2012, 12:14:03
Even though TrueTypeFont is marked as depreciated it can still be used.

UnicodeFont isn't yet part of Slick-Util, so to use it you'll need to use the Slick2D Jar (slick.jar).

Basically its an issue for the Slick developers to fix, either they should un-depreciate TrueTypeFont or replace it with UnicodeFont in the Slick-Util package.
Title: Re: Slick Util's TrueTypeFont is deprecated
Post by: CodeBunny on July 02, 2012, 12:23:07
Additionally, I would highly recommend using AngelCode bitmap fonts instead:


An example of a modified font image:
(http://i.imgur.com/9WYGr.png)