libgdx doesn't render fonts properly after resume

Viewed 1153

I'm having problems with fonts using libgdx on android. They work fine when i first open the application. But when I pause the app then resume it, the fonts are rendered incorrectly.

Here's how I create the font.

FreeTypeFontGenerator generator = new FreeTypeFontGenerator(Gdx.files.internal("fonts/MainFont.ttf"));
LabelStyle ls = new LabelStyle();
ls.font = generator.generateFont(30);
ls.fontColor = new Color(1.0f, 1.0f, 1.0f, 1.0f);       
mPlay = new Label("Play", ls);      
mInstructions = new Label("How To Play", ls);
generator.dispose();

I don't have anything in my Pause/Resume methods, not sure if there should be something there.

Here's what it looks before/after like.

Before

enter image description here

2 Answers
Related