I recently noticed that my version of libgdx was way out of date, so I updated from version .9.something to 1.4.1. I copied files for the project I’m working on over into a new project generated with the new setup gui and everything works fine except that now all of my text is black, whereas previously it was mostly white. My code hasn’t changed at all.
font = new BitmapFont(Gdx.files.internal("data/vistor.fnt"), false);
font.setColor(Color.WHITE);
font.setScale(5);
...
font.setColor(Color.WHITE);
font.setScale(5);
font.draw(batch, "Score: " + score, 10, 85);
font.draw(batch, "EHP: " + sp, 10, 30);
With this code, the text shows up black. Has something changed with the way fonts work? I’m very confused. The .fnt’s related .tga has white characters on a black background. Any ideas?