Hi,
I’ve made my own Java2D menus for a game that runs in a resizable window. Sometimes the window is big, sometimes it is small.
How should I set the text/font in a button to be the right size so it scales properly?
I mean, say the button is 1/8 of the window, and the String painted in it is Font size 14 and it fits snuggly in the button. Then the window width and height is doubled (or the game runs on a screen with a higher resolution that’s double as big) and now the string is too small for the button since the button is now double as wide. Should I just scale up the font size by double (14*2)?
What do you guys do about this? I know many people just fix the window size, but I’d like to avoid that.
Thanks 