Reputation:
I have created an app that uses FitViewport. So it will keep the aspect ratio on any phone.
But how do I solve that for my fonts? My buttons etc are all scaled to look the same bu the fonts are not. So I need some solutions with different font sizes for different screen resolutions.
What is the way to handle that in libgdx?
Upvotes: 1
Views: 462
Reputation: 749
For dynamic font sizes, either you can use multiple BitmapFont files for each resolution or use Gdx-freetype and generate them on the fly.
Upvotes: 1