LWJGL Forum

Programming => OpenGL => Topic started by: Gaara on April 25, 2006, 20:15:05

Title: Proportional Fonts using Java2D for OpenGL
Post by: Gaara on April 25, 2006, 20:15:05
Hey all.  I made proportional fonts for LWJGL.

Some features it has:
-Can be made from probably any font that AWT can load (haven't tested importing fonts)
-Can have multiple different fonts at the same time
-Can have different colors for the string or select characters
-Can be rendered in a 3D world (e.g. for billboards or floating text)

Here is a small demo I put together. (http://www.rit.edu/~jrs8212/lwjgl/glfont/glfonts.zip)  Source included, as well as LWJGL.  Requires Java 1.5.  Also includes a Texture loader.

Enjoy.
Title: hmmmmm...
Post by: Fool Running on April 25, 2006, 20:19:51
Nice 8)
Title: Proportional Fonts using Java2D for OpenGL
Post by: kristleifur on April 29, 2006, 05:53:25
Great -- Thanks!

It looks good with this pixelfont called "Grudblitter" in sizes 18, 27 and 36:
http://grudnuk.com/fonts/grudblitter.html
Title: Proportional Fonts using Java2D for OpenGL
Post by: lightbringer on June 29, 2006, 23:50:50
Very cool. :D

Edit: Ok, I'm a couple of months late, but it's still cool.