Font size at run time
Posted: Fri May 13, 2005 12:33
Hello All,
I am facing the following issue in using the fonts.
I have loaded default font "arial" in my widget. by default size is 12.
I want to change it's size to 10 at run time.
I am not able to find any method for this.
The only way i could get is use createFont method again to create a different font.
But i need the ttf file name for using this method, which i will not get from my font object.
Can any body suggest me some other method for changing font sizes on run time.
Thanks and Regards,
Ritu
I am facing the following issue in using the fonts.
I have loaded default font "arial" in my widget. by default size is 12.
I want to change it's size to 10 at run time.
I am not able to find any method for this.
The only way i could get is use createFont method again to create a different font.
But i need the ttf file name for using this method, which i will not get from my font object.
Can any body suggest me some other method for changing font sizes on run time.
Thanks and Regards,
Ritu