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 - How to save instance state of selected radiobutton on menu -

python 3 IndexError: list index out of range -

IF statement in MySQL trigger -