Hi All
I was looking at textmetric topic on MSDN. Is this structure/functionality covered in any part of GdiPlusX ?
Reason asking;
I need precise coordinates of string as it is drawn on Canvas.
If I draw string 'GDIPlusX Rocks!' at pixel 0,0 using Arial 16 / bold,
I want to know exactly what will be coordinates of bottom left and bottom-right pixels of hypotetic rectangle that string is drawn within.
(Like 'loPathRect' when you draw justified string/text)
.
.
local loFont as xfcFont
loFont = .font.New('Arial', 16 , .FontStyle.Bold )
oGfx.DrawString( 'GdiPlusX Rocks big time! :)' , loFont, loSolidBrush, .PointF.New( 0,0))
.
.
Also, How meny pixels are above letters, how meny pixels are below baseline.
FONTMETRIC() give static info in regard of fonts, but I was wandering if GdiPlusX has provisions for obtaining this kind of 'as you draw' or 'on the fly' coordinates.
TIA
Sergio