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
Post a Comment