android - How can I resize the font in a scene2D select box? -


i'm creating android app using scene2d in libgdx. app have compatible many screen resolutions, problem at. font used in selectbox uses set amount of pixels, on 1080p phone screen small read, , on low resolution phone big.

there seems no way scale text.

here setup select box

public void create(stage stageall, bitmapfont font, float width, float height){           screenwidth = width;     screenheight = height;      stage = stageall;          tableskin = new skin(gdx.files.internal("resources/uiskin.json"));         sb = new selectbox(tableskin);     sb.setitems("5 km", "10 km", "20 km");         stage.addactor(sb);       sb.setsize(screenwidth/2, screenheight/20); } 

thanks in advance

james


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

php - How do you embed a video into a custom theme on WordPress? -