jogamp
›
jogl
Login
Register
font texture issue - garbled characters
Posted by
jurchiks
on
Oct 23, 2014; 11:47am
URL:
https://forum.jogamp.org/font-texture-issue-garbled-characters-tp4033437.html
The texture is being loaded here:
https://code.google.com/p/g3d-editor/source/browse/trunk/G3D-Editor/src/g3deditor/jogl/GLGUIRenderer.java#102
and as far as I understand, it is being rendered here:
https://code.google.com/p/g3d-editor/source/browse/trunk/G3D-Editor/src/g3deditor/jogl/GLGUIRenderer.java#134
(the code has been very slightly updated, the bind() method has the "gl" parameter added, I haven't committed it yet because I still have to work out this one bug).
The texts are being modified here (lines 240-246):
https://code.google.com/p/g3d-editor/source/browse/trunk/G3D-Editor/src/g3deditor/jogl/GLDisplay.java#225
and rendered on line 403.
Before I updated the jogl libraries, the text was displayed like this:
After the library update, it looks like this:
The font texture file is this one:
https://code.google.com/p/g3d-editor/source/browse/trunk/G3D-Editor/data/textures/font.png
What could be causing this?
Alternatively, how could I get rid of that image altogether and just use a system font?
Free forum by Nabble
Edit this page