Hi,
I would like to know if there’s a library that prints text using truetype fonts with jogl, or at least a way of doing it with jogl myself.
Hi,
I would like to know if there’s a library that prints text using truetype fonts with jogl, or at least a way of doing it with jogl myself.
you can try playing with jfont.java and stroke.java from
http://ak.kiet.le.googlepages.com/theredbookinjava.html
try also old posts for relevant info…
I own the red book (3rd ed) and didn’t know there were Truetype code in there. Is there any? I’m not really trying to learn glBegin and glEnd, just want a pointer to somewhere with relevant information on Truetype, Java and jogl
The standard Java Font class will read TrueType fonts. From that you can get outline paths and that sort of thing… the JOGL parts I’ll leave to someone that knows. I’m a JOGL newbie.
And follow this chain of threads… http://www.java-gaming.org/forums/index.php?topic=13444.0
no, 3rd edition don’t have truetype fonts. but jfont.java from my page uses Java’s font from GlyphVector. it is a very simple starting point for getting any font from java platform and draw it using opengl. yeah, follow the link swpalmer provided.
I ran the webstart file, it worked, but where’s the source?