Login  Register

Scaling text using TextRenderer

Posted by Qu0ll on Aug 05, 2010; 7:48pm
URL: https://forum.jogamp.org/Scaling-text-using-TextRenderer-tp1027606.html

Our application depends heavily on good text rendering and being able to do interesting things with that text.  I have tried to use TextRenderer to do text scaling but have not had much success.  We need to be able to do proper scaling of text such as just horizontal scaling or just vertical scaling or combinations of both but I can't see how I can use TextRenderer to do this.

How can I use Text Renderer to scale text?  I have tried setting the OpenGL scaling factor(s) immediately prior to rendering text and also by implementing a custom renderer delegate and doing the scaling using Java2D inside it but in both cases I end up with illegible, undesirable results.

Can this be done?