Try out the TextElement class in place of BitmapText and see if you still have the issue. Here is an example of using it:
[java]
// dimensions for text is a rectangle bounds that is used for alignment positioning
// font is the actual BitmapFont to use
TextElement el = new TextElement(screen, UID, Vector2f.ZERO, new Vector2f(300,50), font) { @Override
public void onUpdate(float tpf) { } @Override
public void onEffectStart() { } @Override
public void onEffectStop() { }
};
el.setIsResizable(false);
el.setIsMovable(false);
el.setTextWrap(LineWrapMode.NoWrap);
el.setTextVAlign(VAlign.Center);
el.setTextAlign(Align.Center);
el.setFontSize(18);
el.setText(“This is a sample TextElement”);
screen.addElement(el);
[/java]
This uses BitmapFont, but is a complete rewrite of BitmapText that solves quite a few issues.
Out of curiosity, I see the text is added as part of an appstate. Is the appstate being removed?
EDIT: Scratch this… I just looked through the rest of the class (to check for a cleanup method). It wouldn’t make a difference as the text is never removed…