java - Font size in textfield libgdx -


how can change size of textfield font in libgdx?

usernametextfield = new textfield("", globalskin); usernametextfield. ??? 

there various builtin methods can call set size. if want set size of textfield can call

usernametextfield.setwidth(float width) or usernametextfield.setheight(float width) or usernametextfield.setmaxlength(maxlength) 

and if want set size of font `

textfield.textfieldstyle textfieldstyle = skin.get(textfield.textfieldstyle.class); textfieldstyle.font.scale(1.6f); 

`

you can check methods , need take @ api.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -