Highlighted

Chaging fonts and fonts size of controls

Avatar

26-07-2008

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

Replies

Highlighted

Avatar

Avatar

pguerett

Total Posts

7.7K

Likes

611

Correct Answer

692

Avatar

pguerett

Total Posts

7.7K

Likes

611

Correct Answer

692
pguerett

28-07-2008

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.