Hi
This is want I want to do...
I've got 3 Lines (3 x Strings)..
Lets say
Line1 = "Hello World"
Line2 = "Goodbye World"
Line3 = "Here I am again World"
I want to calculate the rectangular erea around the 3 lines.
So
x = 0
y = 0
width = (size of each character (in font size))
height = (size of largest character (in font size) * 3)
Plus all the spaces between characters, line feeds .. bla bla bla..
The bottom lines is, that I want to draw 'n rectagle around the text, and the text could be in any font/font size/bold or plain/italic bla bla bla.
Hope this make sense...
Thanks
Toyman
This is want I want to do...
I've got 3 Lines (3 x Strings)..
Lets say
Line1 = "Hello World"
Line2 = "Goodbye World"
Line3 = "Here I am again World"
I want to calculate the rectangular erea around the 3 lines.
So
x = 0
y = 0
width = (size of each character (in font size))
height = (size of largest character (in font size) * 3)
Plus all the spaces between characters, line feeds .. bla bla bla..
The bottom lines is, that I want to draw 'n rectagle around the text, and the text could be in any font/font size/bold or plain/italic bla bla bla.
Hope this make sense...
Thanks
Toyman