Hello
I am currently developing an application that displays information to users. I have everything working but one tiny thing thats bugging me. I create a font as below
I use g.measurestring to measure a string and if it exceeds limits I set the size of the font to a smaller font in a loop until the string fits the limits.
My problem is that when i set my size value to a lower value, myfont does not recognise this, Do i have to dispose of the font and then recreate it for the value of size to be recognised.
I thought it would be as easy as setting font1.size = value but i was wrong! any help would be welcomed with open arms :)
cheers
truez
I am currently developing an application that displays information to users. I have everything working but one tiny thing thats bugging me. I create a font as below
Code:
Dim[ myfont AsNew Font(["Arial", size, System.Drawing.FontStyle.Regular)
My problem is that when i set my size value to a lower value, myfont does not recognise this, Do i have to dispose of the font and then recreate it for the value of size to be recognised.
I thought it would be as easy as setting font1.size = value but i was wrong! any help would be welcomed with open arms :)
cheers
truez
Comment