I want to draw some fonts in my game (in libgdx). I have no errors, everything works but I don't see fonts. I don't know why. Maybe someone had the same problem. Thanks for help. Here is my code in create method:
String scores = "SCORE:";
atlas = new TextureAtlas();
camera = new OrthographicCamera(1, h/w);
batch = new SpriteBatch();
score = new BitmapFont(Gdx.files.internal("gfx/abc.fnt"),
atlas.findRegion("gfx/abc.png"), false);
and render:
Gdx.gl.glClearColor(1, 1, 1, 1);
Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT);
camera.update();
batch.setProjectionMatrix(camera.combined);
batch.begin();
score.draw(batch, scores, 300, 300);
Gdx.app.log("", ""+scores);
batch.end();