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

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

c# - How do I get the Nth largest element from a list with duplicates, using LINQ? -

jsp - "Sending a redirect is forbidden after the response has been committed" in sendRedirect -