Expand my Community achievements bar.

Chaging fonts and fonts size of controls

Avatar

Former Community Member
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

Avatar

Former Community Member
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.