jME-TrueTypeFont Rendering Library

jME-TrueTypeFont has been updated to version 1.28 which fixes a bug where some Android devices would throw a VerifyError upon loading a font. Apparently some Android devices still look for java.awt.font even if it’s in an if statement that won’t test true. Separating it out into a separate class that is only loaded when run on desktop solved the issue.

For anyone using LemurDynamo it has also seen a few updates and now stands at Beta 15. Fixed a few issues with layers, an issue where font’s wouldn’t keep the alpha setting set through setAlpha() if setText() was called afterwards and updated the shader for GradientBackgroundComponents for better support of Android devices that don’t support high precision floating point variables, though if they don’t support high precision and do support standard derivatives there may still be an issue compiling the shader due to a problem with jME’s GLRenderer where it inserts precision mediump float; above the extension declaration.

If you’re using LemurDynamo on Android devices you can either disable anti-aliasing by setting GuiGlobals.getInstance().derivativeSupported = false or modify GLRenderer in the core package as per my other thread: [SOLVED] Unable to Use GLSL Extensions in Fragment Shader - #2 by Tryder

3 Likes