how to increase the Bitmap font in libgdx -


i created bitmap font don't seem able increase size of text. take @ code. font.draw(batch, "score : " + highscore, 10, 300);.

bitmapfont has bitmapfont.setscale(float) can example set 2.0f increase size 200%.

however not want want do, because result in pretty bad quality.

what should either use hiero create several versions of font, different font sizes , switch them in code.

another alternative use gdx-freetype extension (which not available on platforms though) , generate fonts in size need them @ runtime.


Comments