Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Chaging fonts and fonts size of controls

Not applicable
Dear All,



I have faced one problem for changing the fonts and font size for the controls. I have used

For changing fonts:-

Textfield.font.typeface="Fontname";



For changing Size:-

Textfield.font.size="100pt";



But I have used the code for changing the color of the fonts. And it works fine.

Textfield.fontColor="0,183,0";



So, Please help for solving the problems of changing fonts size and fonts.



Thank you
1 Reply
pguerett
Level 10
Level 10
Why would you want to change the font and font size programmatically?



Can you describe why you are doing this ..perhaps there is a better approach.