RenderTarget.DrawText uses a TextFormat. My question is how can I tell, in units used by SharpDX for vertical positioning (DIPs?), what all-in height will be used to print that text? That would include both the font height and any leading. Put another way, the height of a box surrounding the entire area used by text drawn that way.
As a fallback, I know I can get the font size, but that is in points. How do I convert that to what I need for Y-axis position calculations? I'd have to fudge to allow for leading, but at least I would have a starting point.

Comment