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
BedrockMission!

Learn More

View all

Sign in to view all badges

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

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

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.